From: Victor Stinner Date: Mon, 3 Jul 2023 23:37:48 +0000 (+0200) Subject: gh-106320: Fix _PyImport_GetModuleAttr() declaration (#106386) X-Git-Tag: v3.13.0a1~1532 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b4256135809d78d342e9d92e8bc3f527d3d3057f;p=thirdparty%2FPython%2Fcpython.git gh-106320: Fix _PyImport_GetModuleAttr() declaration (#106386) Replace PyAPI_DATA() with PyAPI_FUNC(). --- diff --git a/Include/internal/pycore_import.h b/Include/internal/pycore_import.h index 457a654aff46..c048ae88d900 100644 --- a/Include/internal/pycore_import.h +++ b/Include/internal/pycore_import.h @@ -24,8 +24,8 @@ extern int _PyImport_FixupBuiltin( extern int _PyImport_FixupExtensionObject(PyObject*, PyObject *, PyObject *, PyObject *); -PyAPI_DATA(PyObject *) _PyImport_GetModuleAttr(PyObject *, PyObject *); -PyAPI_DATA(PyObject *) _PyImport_GetModuleAttrString(const char *, const char *); +PyAPI_FUNC(PyObject *) _PyImport_GetModuleAttr(PyObject *, PyObject *); +PyAPI_FUNC(PyObject *) _PyImport_GetModuleAttrString(const char *, const char *); struct _import_runtime_state {