Skip to content

Commit 1cd72a7

Browse files
committed
Revert the poisoning for now
1 parent cb3c6fe commit 1cd72a7

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

Include/pyport.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,6 @@
8383
// locking needed in for free-threaded interpreters builds.
8484
# define Py_GIL_DISABLED
8585
# endif
86-
# if defined(_Py_IS_TESTCEXT)
87-
// When compiling for abi3t, contents of Python.h should not depend
88-
// on Py_GIL_DISABLED.
89-
// We ask GCC to error if it sees the macro from this point on.
90-
// Since users are free to the macro, and there's no way to undo the poisoning
91-
// at the end of Python.h, we only do this in a test module.
92-
# ifdef __GNUC__
93-
# undef Py_GIL_DISABLED
94-
# pragma GCC poison Py_GIL_DISABLED
95-
# endif
96-
# endif
9786
#endif
9887

9988

Lib/test/test_cext/setup.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@
1818
# The purpose of test_cext extension is to check that building a C
1919
# extension using the Python C API does not emit C compiler warnings.
2020
'-Werror',
21-
# Enable extra checks for header files, which:
22-
# - need to be enabled somewhere inside Python headers (rather than
23-
# before including Python.h)
24-
# - should not be checked for user code
25-
'-D_Py_IS_TESTCEXT',
2621
]
2722

2823
# C compiler flags for GCC and clang

0 commit comments

Comments
 (0)