Py3.13: Initialize field tp_versions_used

This commit is contained in:
Ladislav Michl
2025-09-10 08:14:40 +02:00
parent 692d40916a
commit ea9cdfd962
2 changed files with 6 additions and 1 deletions

View File

@@ -46,7 +46,9 @@
virtual ~_class_(); \
};
#if PY_VERSION_HEX >= 0x030c0000
#if PY_VERSION_HEX >= 0x030d0000
#define PYTHON_TYPE_SLOTS 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
#elif PY_VERSION_HEX >= 0x030c0000
#define PYTHON_TYPE_SLOTS 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
#else
#define PYTHON_TYPE_SLOTS 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0