File tree 3 files changed +15
-2
lines changed
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
+
1
7
#include "parts.h"
2
8
#include <stddef.h> // max_align_t
3
9
#include <string.h> // memset
Original file line number Diff line number Diff line change 7
7
#include "pyconfig.h" // Py_GIL_DISABLED
8
8
9
9
// 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
12
13
#endif
13
14
14
15
// Make sure that the internal C API cannot be used.
Original file line number Diff line number Diff line change 1
1
/* Test Vectorcall in the limited API */
2
2
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
+
3
9
#include "parts.h"
4
10
#include "clinic/vectorcall_limited.c.h"
5
11
You can’t perform that action at this time.
0 commit comments