summaryrefslogtreecommitdiffstats
path: root/Include/pystate.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-24 23:54:18 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-03-24 23:54:18 (GMT)
commit4b8b86c6d57f630763ace512bfc302fb0c2b55f8 (patch)
tree617b143d7f1378796008378d941e046352852b05 /Include/pystate.h
parent27461683a9491efe58331a695c856fbb28bd4cba (diff)
downloadcpython-4b8b86c6d57f630763ace512bfc302fb0c2b55f8.zip
cpython-4b8b86c6d57f630763ace512bfc302fb0c2b55f8.tar.gz
cpython-4b8b86c6d57f630763ace512bfc302fb0c2b55f8.tar.bz2
pystate.h: fix _PyThreadState_UncheckedGet()
Declare the function even if thread support is disabled.
Diffstat (limited to 'Include/pystate.h')
-rw-r--r--Include/pystate.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/Include/pystate.h b/Include/pystate.h
index b50b16b..0499a74 100644
--- a/Include/pystate.h
+++ b/Include/pystate.h
@@ -173,11 +173,9 @@ PyAPI_FUNC(void) _PyGILState_Reinit(void);
* the caller needn't check for NULL). */
PyAPI_FUNC(PyThreadState *) PyThreadState_Get(void);
-#ifdef WITH_THREAD
/* Similar to PyThreadState_Get(), but don't issue a fatal error
* if it is NULL. */
PyAPI_FUNC(PyThreadState *) _PyThreadState_UncheckedGet(void);
-#endif
PyAPI_FUNC(PyThreadState *) PyThreadState_Swap(PyThreadState *);
PyAPI_FUNC(PyObject *) PyThreadState_GetDict(void);