aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzard <fuzzard@users.noreply.github.com>2023-08-22 10:56:07 +1000
committerGitHub <noreply@github.com>2023-08-22 10:56:07 +1000
commita6f4852f8d93bee1a43ebabd87daa1e08046b782 (patch)
treeef94ac01f9f56bc899647b69f4764a0ac8a9b459
parent56eed4d5cbe248acafc97b437f200e47e6266540 (diff)
parent2c84ee54a75770e291f38d4ebb2c31c8f2c3b8c5 (diff)
Merge pull request #23589 from bkuhls/backportPR23508
PythonBindings: TypeInfo: add initialization of tp_watched for PyTypeObject
-rw-r--r--xbmc/interfaces/python/swig.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/xbmc/interfaces/python/swig.cpp b/xbmc/interfaces/python/swig.cpp
index 5a2599a84e..0c49f87ca8 100644
--- a/xbmc/interfaces/python/swig.cpp
+++ b/xbmc/interfaces/python/swig.cpp
@@ -18,8 +18,8 @@ namespace PythonBindings
{
TypeInfo::TypeInfo(const std::type_info& ti) : swigType(NULL), parentType(NULL), typeIndex(ti)
{
- static PyTypeObject py_type_object_header =
- { PyVarObject_HEAD_INIT(nullptr, 0) 0,
+ static PyTypeObject py_type_object_header = {
+ PyVarObject_HEAD_INIT(nullptr, 0) 0,
0,
0,
0,
@@ -72,6 +72,9 @@ namespace PythonBindings
#if PY_VERSION_HEX < 0x03090000
0,
#endif
+#if PY_VERSION_HEX >= 0x030C00A1
+ 0,
+#endif
};
static int size = (long*)&(py_type_object_header.tp_name) - (long*)&py_type_object_header;