Skip to content

Commit

Permalink
Fix more includes for nogil
Browse files Browse the repository at this point in the history
  • Loading branch information
colesbury committed Dec 8, 2023
1 parent 313618b commit 6158d6e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Modules/_ctypes/_ctypes_test.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#ifndef _MSC_VER
#include "pyconfig.h" // Py_GIL_DISABLED
#endif

#ifndef Py_GIL_DISABLED
// Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
Expand Down
2 changes: 0 additions & 2 deletions Modules/_testcapi/heaptype_relative.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#ifndef _MSC_VER
#include "pyconfig.h" // Py_GIL_DISABLED
#endif

#ifndef Py_GIL_DISABLED
#define Py_LIMITED_API 0x030c0000 // 3.12
Expand Down
2 changes: 0 additions & 2 deletions Modules/_testcapi/vectorcall_limited.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/* Test Vectorcall in the limited API */

#ifndef _MSC_VER
#include "pyconfig.h" // Py_GIL_DISABLED
#endif

#ifndef Py_GIL_DISABLED
#define Py_LIMITED_API 0x030c0000 // 3.12
Expand Down
2 changes: 2 additions & 0 deletions PC/winsound.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
winsound.PlaySound(None, 0)
*/

#include "pyconfig.h" // Py_GIL_DISABLED

#ifndef Py_GIL_DISABLED
// Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
#define Py_LIMITED_API 0x030c0000
Expand Down

0 comments on commit 6158d6e

Please sign in to comment.