From: Victor Stinner Date: Tue, 29 Aug 2023 03:40:13 +0000 (+0200) Subject: gh-106320: Fix test_peg_generator: _Py_UniversalNewlineFgetsWithSize() (#108609) X-Git-Tag: v3.13.0a1~721 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c780698e9b8416633402657ee2846c0179705e9b;p=thirdparty%2FPython%2Fcpython.git gh-106320: Fix test_peg_generator: _Py_UniversalNewlineFgetsWithSize() (#108609) Fix test_peg_generator by exporting the _Py_UniversalNewlineFgetsWithSize() function. --- diff --git a/Include/internal/pycore_fileutils.h b/Include/internal/pycore_fileutils.h index 4707a9b1ff30..9236e5907a48 100644 --- a/Include/internal/pycore_fileutils.h +++ b/Include/internal/pycore_fileutils.h @@ -315,7 +315,8 @@ extern HRESULT PathCchSkipRoot(const wchar_t *pszPath, const wchar_t **ppszRootE // Export for 'select' shared extension (Argument Clinic code) PyAPI_FUNC(int) _PyLong_FileDescriptor_Converter(PyObject *, void *); -extern char* _Py_UniversalNewlineFgetsWithSize(char *, int, FILE*, PyObject *, size_t*); +// Export for test_peg_generator +PyAPI_FUNC(char*) _Py_UniversalNewlineFgetsWithSize(char *, int, FILE*, PyObject *, size_t*); #ifdef __cplusplus }