Skip to content

Commit 6c067b7

Browse files
committed
Remove additional guards
1 parent 313618b commit 6c067b7

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

Modules/_ctypes/_ctypes_test.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#ifndef _MSC_VER
21
#include "pyconfig.h" // Py_GIL_DISABLED
3-
#endif
42

53
#ifndef Py_GIL_DISABLED
64
// Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED

Modules/_testcapi/heaptype_relative.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#ifndef _MSC_VER
21
#include "pyconfig.h" // Py_GIL_DISABLED
3-
#endif
42

53
#ifndef Py_GIL_DISABLED
64
#define Py_LIMITED_API 0x030c0000 // 3.12

Modules/_testcapi/vectorcall_limited.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/* Test Vectorcall in the limited API */
22

3-
#ifndef _MSC_VER
43
#include "pyconfig.h" // Py_GIL_DISABLED
5-
#endif
64

75
#ifndef Py_GIL_DISABLED
86
#define Py_LIMITED_API 0x030c0000 // 3.12

PC/winsound.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
winsound.PlaySound(None, 0)
3636
*/
3737

38+
#include "pyconfig.h" // Py_GIL_DISABLED
39+
3840
#ifndef Py_GIL_DISABLED
3941
// Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
4042
#define Py_LIMITED_API 0x030c0000

0 commit comments

Comments
 (0)