Skip to content

Commit c780698

Browse files
authored
gh-106320: Fix test_peg_generator: _Py_UniversalNewlineFgetsWithSize() (#108609)
Fix test_peg_generator by exporting the _Py_UniversalNewlineFgetsWithSize() function.
1 parent b6de285 commit c780698

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Include/internal/pycore_fileutils.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,8 @@ extern HRESULT PathCchSkipRoot(const wchar_t *pszPath, const wchar_t **ppszRootE
315315
// Export for 'select' shared extension (Argument Clinic code)
316316
PyAPI_FUNC(int) _PyLong_FileDescriptor_Converter(PyObject *, void *);
317317

318-
extern char* _Py_UniversalNewlineFgetsWithSize(char *, int, FILE*, PyObject *, size_t*);
318+
// Export for test_peg_generator
319+
PyAPI_FUNC(char*) _Py_UniversalNewlineFgetsWithSize(char *, int, FILE*, PyObject *, size_t*);
319320

320321
#ifdef __cplusplus
321322
}

0 commit comments

Comments
 (0)