File tree Expand file tree Collapse file tree 12 files changed +23
-23
lines changed Expand file tree Collapse file tree 12 files changed +23
-23
lines changed Original file line number Diff line number Diff line change @@ -82,10 +82,10 @@ struct PyModuleDef_Slot {
8282#endif /* New in 3.5 */
8383
8484/* for Py_mod_multiple_interpreters: */
85- #if !defined(Py_LIMITED_API ) || Py_LIMITED_API + 0 >= 0x030d0000
86- #define Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED ((void *)0)
87- #define Py_MOD_MULTIPLE_INTERPRETERS_SUPPORTED ((void *)1)
88- #define Py_MOD_PER_INTERPRETER_GIL_SUPPORTED ((void *)2)
85+ #if !defined(Py_LIMITED_API ) || Py_LIMITED_API + 0 >= 0x030c0000
86+ # define Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED ((void *)0)
87+ # define Py_MOD_MULTIPLE_INTERPRETERS_SUPPORTED ((void *)1)
88+ # define Py_MOD_PER_INTERPRETER_GIL_SUPPORTED ((void *)2)
8989#endif
9090
9191struct PyModuleDef {
Original file line number Diff line number Diff line change 33#endif
44
55#ifndef Py_NOGIL
6- // Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
7- #define Py_LIMITED_API 0x030d0000
6+ // Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
7+ #define Py_LIMITED_API 0x030c0000
88#endif
99
1010// gh-85283: On Windows, Py_LIMITED_API requires Py_BUILD_CORE to not attempt
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ posixshmem - A Python extension that provides shm_open() and shm_unlink()
55#include "pyconfig.h" // Py_NOGIL
66
77#ifndef Py_NOGIL
8- // Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
9- #define Py_LIMITED_API 0x030d0000
8+ // Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
9+ #define Py_LIMITED_API 0x030c0000
1010#endif
1111
1212#include <Python.h>
Original file line number Diff line number Diff line change 88#endif
99
1010#ifndef Py_NOGIL
11- // Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
12- #define Py_LIMITED_API 0x030d0000
11+ // Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
12+ #define Py_LIMITED_API 0x030c0000
1313#endif
1414
1515#include <Python.h>
Original file line number Diff line number Diff line change 1515#include "pyconfig.h" // Py_NOGIL
1616#endif
1717
18- // Need limited C API version 3.13 for PyModule_Add() on Windows
1918#ifndef Py_NOGIL
19+ // Need limited C API version 3.13 for PyModule_Add() on Windows
2020#define Py_LIMITED_API 0x030d0000
2121#endif
2222
Original file line number Diff line number Diff line change 88#include "pyconfig.h" // Py_NOGIL
99#endif
1010
11- // For now, only limited C API 3.13 is supported
1211#ifndef Py_NOGIL
12+ // For now, only limited C API 3.13 is supported
1313#define Py_LIMITED_API 0x030d0000
1414#endif
1515
Original file line number Diff line number Diff line change 88#endif
99
1010#ifndef Py_NOGIL
11- // Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
12- #define Py_LIMITED_API 0x030d0000
11+ // Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
12+ #define Py_LIMITED_API 0x030c0000
1313#endif
1414
1515#include "Python.h"
Original file line number Diff line number Diff line change 55#endif
66
77#ifndef Py_NOGIL
8- // Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
9- #define Py_LIMITED_API 0x030d0000
8+ // Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
9+ #define Py_LIMITED_API 0x030c0000
1010#endif
1111
1212#include "Python.h"
Original file line number Diff line number Diff line change 2121#endif
2222
2323#ifndef Py_NOGIL
24- // Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
25- #define Py_LIMITED_API 0x030d0000
24+ // Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
25+ #define Py_LIMITED_API 0x030c0000
2626#endif
2727
2828#include "Python.h"
Original file line number Diff line number Diff line change 33#endif
44
55#ifndef Py_NOGIL
6- // Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
6+ // Need limited C API version 3.13 for PySys_Audit()
77#define Py_LIMITED_API 0x030d0000
88#endif
99
You can’t perform that action at this time.
0 commit comments