]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-106320: Fix _PyImport_GetModuleAttr() declaration (#106386)
authorVictor Stinner <vstinner@python.org>
Mon, 3 Jul 2023 23:37:48 +0000 (01:37 +0200)
committerGitHub <noreply@github.com>
Mon, 3 Jul 2023 23:37:48 +0000 (23:37 +0000)
Replace PyAPI_DATA() with PyAPI_FUNC().

Include/internal/pycore_import.h

index 457a654aff46448934d3faa4720da821a3a6935f..c048ae88d9000c9fe72ea4a67780d0bef0782558 100644 (file)
@@ -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 {