From: Dmitry Shachnev Date: Sat, 4 Jan 2025 18:20:12 +0000 (+0300) Subject: Use public version of PyLong_AsInt for Python >= 3.13 X-Git-Tag: archive/raspbian/5.15.16-3.1+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c82f98a8837cd92af9c6104514128a58b4b6f3fd;p=pyside2.git Use public version of PyLong_AsInt for Python >= 3.13 Forwarded: no Gbp-Pq: Name Use-public-version-of-PyLong_AsInt-for-Python-3.13.patch --- diff --git a/sources/shiboken2/libshiboken/pep384impl.h b/sources/shiboken2/libshiboken/pep384impl.h index 440784e..323715b 100644 --- a/sources/shiboken2/libshiboken/pep384impl.h +++ b/sources/shiboken2/libshiboken/pep384impl.h @@ -183,6 +183,8 @@ LIBSHIBOKEN_API const char *PepType_GetNameStr(PyTypeObject *type); */ #ifdef Py_LIMITED_API LIBSHIBOKEN_API int _PepLong_AsInt(PyObject *); +#elif PY_VERSION_HEX >= 0x030D0000 +#define _PepLong_AsInt PyLong_AsInt #else #define _PepLong_AsInt _PyLong_AsInt #endif