From: Dmitry Shachnev Date: Wed, 4 Jan 2023 20:08:32 +0000 (+0400) Subject: Revert removal of version check X-Git-Tag: archive/raspbian/5.15.8-2+rpi1^2^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=72ae45475d68b3189cf43db8e042f01193084e6f;p=pyside2.git Revert removal of version check It broke build without limited API. Gbp-Pq: Name Revert-removal-of-version-check.patch --- diff --git a/sources/shiboken2/libshiboken/pep384impl.cpp b/sources/shiboken2/libshiboken/pep384impl.cpp index 66df0fd..a723303 100644 --- a/sources/shiboken2/libshiboken/pep384impl.cpp +++ b/sources/shiboken2/libshiboken/pep384impl.cpp @@ -751,7 +751,7 @@ _Pep_PrivateMangle(PyObject *self, PyObject *name) #endif // IS_PY2 Shiboken::AutoDecRef privateobj(PyObject_GetAttr( reinterpret_cast(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.