Skip to content

Commit f258b67

Browse files
hugovkscoder
authored andcommitted
PEP 703: Accept new Py_GIL_DISABLED macro in addition to PY_NOGIL (GH-5852)
See python/cpython#111863 See python/cpython#111864
1 parent df2bffa commit f258b67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Cython/Utility/ModuleSetupCode.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
#define CYTHON_UPDATE_DESCRIPTOR_DOC 0
249249
#endif
250250

251-
#elif defined(PY_NOGIL)
251+
#elif defined(Py_GIL_DISABLED) || defined(Py_NOGIL)
252252
#define CYTHON_COMPILING_IN_PYPY 0
253253
#define CYTHON_COMPILING_IN_CPYTHON 0
254254
#define CYTHON_COMPILING_IN_LIMITED_API 0

0 commit comments

Comments
 (0)