Skip to content

Commit

Permalink
gh-106320: Fix _PyImport_GetModuleAttr() declaration (#106386)
Browse files Browse the repository at this point in the history
Replace PyAPI_DATA() with PyAPI_FUNC().
  • Loading branch information
vstinner authored Jul 3, 2023
1 parent 648688c commit b425613
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Include/internal/pycore_import.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b425613

Please sign in to comment.