From 0c8e3c736102678eb9c9f22bab323fe145853bc5 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Mon, 24 Jun 2024 16:14:52 +0200 Subject: [PATCH] gh-119680: Use `PyAPI_DATA`, not `extern`, for `_PyExc_IncompleteInputError` --- Include/internal/pycore_pyerrors.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Include/internal/pycore_pyerrors.h b/Include/internal/pycore_pyerrors.h index 1187cbf7e90361..15071638203457 100644 --- a/Include/internal/pycore_pyerrors.h +++ b/Include/internal/pycore_pyerrors.h @@ -168,7 +168,8 @@ void _PyErr_FormatNote(const char *format, ...); Py_DEPRECATED(3.12) extern void _PyErr_ChainExceptions(PyObject *, PyObject *, PyObject *); // implementation detail for the codeop module. -extern PyTypeObject _PyExc_IncompleteInputError; +// Exported for test.test_peg_generator.test_c_parser +PyAPI_DATA(PyTypeObject) _PyExc_IncompleteInputError; #define PyExc_IncompleteInputError ((PyObject *)(&_PyExc_IncompleteInputError)) #ifdef __cplusplus