summaryrefslogtreecommitdiffstats
path: root/Include/pystate.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/pystate.h')
-rw-r--r--Include/pystate.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/pystate.h b/Include/pystate.h
index 06af808..1f3465f 100644
--- a/Include/pystate.h
+++ b/Include/pystate.h
@@ -236,7 +236,9 @@ PyAPI_FUNC(PyThreadState *) PyGILState_GetThisThreadState(void);
/* Helper/diagnostic function - return 1 if the current thread
* currently holds the GIL, 0 otherwise
*/
+#ifndef Py_LIMITED_API
PyAPI_FUNC(int) PyGILState_Check(void);
+#endif
#endif /* #ifdef WITH_THREAD */