diff options
Diffstat (limited to 'sources/shiboken2')
-rw-r--r-- | sources/shiboken2/libshiboken/pep384impl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/shiboken2/libshiboken/pep384impl.cpp b/sources/shiboken2/libshiboken/pep384impl.cpp index 7b333f4ff..9a52603dc 100644 --- a/sources/shiboken2/libshiboken/pep384impl.cpp +++ b/sources/shiboken2/libshiboken/pep384impl.cpp @@ -409,6 +409,7 @@ PyRun_String(const char *str, int start, PyObject *globals, PyObject *locals) // This is only a simple local helper that returns a computed variable. // Used also in Python 2. +#if defined(Py_LIMITED_API) || PY_VERSION_HEX < 0x03000000 static PyObject * PepRun_GetResult(const char *command, const char *resvar) { @@ -424,6 +425,7 @@ PepRun_GetResult(const char *command, const char *resvar) Py_DECREF(d); return res; } +#endif // Py_LIMITED_API || Python 2 #ifdef Py_LIMITED_API |