Skip to content

Commit 7f1205e

Browse files
committed
Don't put PyModule_SetGIL() in the limited API
1 parent bbb949e commit 7f1205e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Include/moduleobject.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ struct PyModuleDef_Slot {
9898
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030e0000
9999
# define Py_MOD_GIL_USED ((void *)0)
100100
# define Py_MOD_GIL_NOT_USED ((void *)1)
101+
#endif
102+
103+
#ifndef Py_LIMITED_API
101104
PyAPI_FUNC(int) PyModule_SetGIL(PyObject *module, void *gil);
102105
#endif
103106

0 commit comments

Comments
 (0)