File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1+ // Need limited C API version 3.12 for PyType_FromMetaclass()
2+ #include "pyconfig.h" // Py_GIL_DISABLED
3+ #if !defined(Py_GIL_DISABLED ) && !defined(Py_LIMITED_API )
4+ # define Py_LIMITED_API 0x030c0000
5+ #endif
6+
17#include "parts.h"
28#include <stddef.h> // max_align_t
39#include <string.h> // memset
Original file line number Diff line number Diff line change 77#include "pyconfig.h" // Py_GIL_DISABLED
88
99// Use the limited C API
10- #ifndef Py_GIL_DISABLED
11- # define Py_LIMITED_API 0x030c0000 // 3.12
10+ #if !defined(Py_GIL_DISABLED ) && !defined(Py_LIMITED_API )
11+ // need limited C API version 3.5 for PyModule_AddFunctions()
12+ # define Py_LIMITED_API 0x03050000
1213#endif
1314
1415// Make sure that the internal C API cannot be used.
Original file line number Diff line number Diff line change 11/* Test Vectorcall in the limited API */
22
3+ // Need limited C API version 3.12 for PyObject_Vectorcall()
4+ #include "pyconfig.h" // Py_GIL_DISABLED
5+ #if !defined(Py_GIL_DISABLED ) && !defined(Py_LIMITED_API )
6+ # define Py_LIMITED_API 0x030c0000
7+ #endif
8+
39#include "parts.h"
410#include "clinic/vectorcall_limited.c.h"
511
You can’t perform that action at this time.
0 commit comments