diff options
Diffstat (limited to 'Include')
-rw-r--r-- | Include/import.h | 2 | ||||
-rw-r--r-- | Include/intrcheck.h | 2 |
2 files changed, 4 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); diff --git a/Include/intrcheck.h b/Include/intrcheck.h index 944968b..2e17336 100644 --- a/Include/intrcheck.h +++ b/Include/intrcheck.h @@ -8,10 +8,12 @@ extern "C" { PyAPI_FUNC(int) PyOS_InterruptOccurred(void); PyAPI_FUNC(void) PyOS_InitInterrupts(void); #ifdef HAVE_FORK +#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03070000 PyAPI_FUNC(void) PyOS_BeforeFork(void); PyAPI_FUNC(void) PyOS_AfterFork_Parent(void); PyAPI_FUNC(void) PyOS_AfterFork_Child(void); #endif +#endif /* Deprecated, please use PyOS_AfterFork_Child() instead */ PyAPI_FUNC(void) PyOS_AfterFork(void) Py_DEPRECATED(3.7); |