diff options
Diffstat (limited to 'dev-python/shiboken2/files')
-rw-r--r-- | dev-python/shiboken2/files/shiboken2-5.15.8-py-limited-api.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-python/shiboken2/files/shiboken2-5.15.8-py-limited-api.patch b/dev-python/shiboken2/files/shiboken2-5.15.8-py-limited-api.patch new file mode 100644 index 000000000000..143eb24a103a --- /dev/null +++ b/dev-python/shiboken2/files/shiboken2-5.15.8-py-limited-api.patch @@ -0,0 +1,11 @@ +--- a/libshiboken/pep384impl.cpp 2022-09-23 08:47:20.000000000 +0200 ++++ b/libshiboken/pep384impl.cpp 2023-01-04 08:07:17.000000000 +0100 +@@ -751,7 +751,7 @@ + #endif // IS_PY2 + Shiboken::AutoDecRef privateobj(PyObject_GetAttr( + reinterpret_cast<PyObject *>(Py_TYPE(self)), Shiboken::PyMagicName::name())); +-#ifndef Py_LIMITED_API ++#if !defined(Py_LIMITED_API) && PY_VERSION_HEX < 0x03010000 + return _Py_Mangle(privateobj, name); + #else + // PYSIDE-1436: _Py_Mangle is no longer exposed; implement it always. |