File tree 3 files changed +12
-0
lines changed
3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 2
2
posixshmem - A Python extension that provides shm_open() and shm_unlink()
3
3
*/
4
4
5
+ #include "pyconfig.h" // Py_NOGIL
6
+
7
+ #ifndef Py_NOGIL
5
8
// Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
6
9
#define Py_LIMITED_API 0x030d0000
10
+ #endif
7
11
8
12
#include <Python.h>
9
13
Original file line number Diff line number Diff line change 3
3
* using the SystemConfiguration framework.
4
4
*/
5
5
6
+ #ifndef _MSC_VER
7
+ #include "pyconfig.h" // Py_NOGIL
8
+ #endif
9
+
10
+ #ifndef Py_NOGIL
6
11
// Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
7
12
#define Py_LIMITED_API 0x030d0000
13
+ #endif
8
14
9
15
#include <Python.h>
10
16
#include <SystemConfiguration/SystemConfiguration.h>
Original file line number Diff line number Diff line change 35
35
winsound.PlaySound(None, 0)
36
36
*/
37
37
38
+ #ifndef Py_NOGIL
38
39
// Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
39
40
#define Py_LIMITED_API 0x030d0000
41
+ #endif
40
42
41
43
#include <Python.h>
42
44
#include <windows.h>
You can’t perform that action at this time.
0 commit comments