aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/libshiboken/pep384impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/libshiboken/pep384impl.cpp')
-rw-r--r--sources/shiboken2/libshiboken/pep384impl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken2/libshiboken/pep384impl.cpp b/sources/shiboken2/libshiboken/pep384impl.cpp
index 6405d777a..f07cac613 100644
--- a/sources/shiboken2/libshiboken/pep384impl.cpp
+++ b/sources/shiboken2/libshiboken/pep384impl.cpp
@@ -641,7 +641,7 @@ PepType_GetNameStr(PyTypeObject *type)
* Newly introduced convenience functions
*
*/
-#if PY_VERSION_HEX < 0x03070000
+#if PY_VERSION_HEX < 0x03070000 || defined(Py_LIMITED_API)
PyObject *
PyImport_GetModule(PyObject *name)
@@ -667,7 +667,7 @@ PyImport_GetModule(PyObject *name)
return m;
}
-#endif // PY_VERSION_HEX < 0x03070000
+#endif // PY_VERSION_HEX < 0x03070000 || defined(Py_LIMITED_API)
/*****************************************************************************
*
* Extra support for name mangling