Skip to content

Commit

Permalink
kodi: allow compile with Python3-3.13.0
Browse files Browse the repository at this point in the history
fixes:
[5/10] Building CXX object build/interfaces/python/CMakeFiles/python_interface.dir/swig.cpp.o
FAILED: build/interfaces/python/CMakeFiles/python_interface.dir/swig.cpp.o
../xbmc/interfaces/python/swig.cpp: In constructor 'PythonBindings::TypeInfo::TypeInfo(const std::type_info&)':
../xbmc/interfaces/python/swig.cpp:78:5: error: missing initializer for member '_typeobject::tp_versions_used' [-Werror=missing-field-initializers]
   78 |     };
      |     ^
cc1plus: some warnings being treated as errors
  • Loading branch information
heitbaum committed Oct 8, 2024
1 parent bb9f588 commit 6cf63bc
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- a/xbmc/interfaces/python/swig.cpp 2024-10-08 13:40:42.546823816 +0000
+++ b/xbmc/interfaces/python/swig.cpp 2024-10-08 13:40:42.546823816 +0000
@@ -75,6 +75,9 @@
#if PY_VERSION_HEX >= 0x030C00A1
0,
#endif
+#if PY_VERSION_HEX >= 0x030D0000
+ 0,
+#endif
};

static int size = (long*)&(py_type_object_header.tp_name) - (long*)&py_type_object_header;

0 comments on commit 6cf63bc

Please sign in to comment.