summaryrefslogtreecommitdiffstats
path: root/Include/import.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/import.h')
-rw-r--r--Include/import.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/import.h b/Include/import.h
index ac3fc3b..13f32a1 100644
--- a/Include/import.h
+++ b/Include/import.h
@@ -38,7 +38,9 @@ PyAPI_FUNC(PyObject *) PyImport_ExecCodeModuleObject(
);
#endif
PyAPI_FUNC(PyObject *) PyImport_GetModuleDict(void);
+#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03070000
PyAPI_FUNC(PyObject *) PyImport_GetModule(PyObject *name);
+#endif
#ifndef Py_LIMITED_API
PyAPI_FUNC(int) _PyImport_IsInitialized(PyInterpreterState *);
PyAPI_FUNC(PyObject *) _PyImport_GetModuleId(struct _Py_Identifier *name);