summaryrefslogtreecommitdiff
path: root/dev-python/pyqt6/files/pyqt6-6.11.0-py3.15.patch
blob: a958770a9c9fc784b45439201d04eeac22727cd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
https://src.fedoraproject.org/rpms/python-pyqt6/blob/rawhide/f/py315.patch
--- a/qpy/QtCore/qpycore_pyqtslot.cpp
+++ b/qpy/QtCore/qpycore_pyqtslot.cpp
@@ -24,6 +24,13 @@
 #include "qpycore_pyqtslot.h"
 
 
+// PyWeakref_GetObject was removed from headers in Python 3.15 but is still
+// part of the stable ABI. Declare it here for Python 3.15+ compatibility.
+#if PY_VERSION_HEX >= 0x030f0000
+extern "C" PyObject* PyWeakref_GetObject(PyObject *ref);
+#endif
+
+
 // Create the slot for a callable.
 PyQtSlot::PyQtSlot(PyObject *callable, bool callable_is_method,
         const Chimera::Signature *slot_signature)