From: Victor Stinner Date: Thu, 24 Mar 2016 23:54:18 +0000 (+0100) Subject: pystate.h: fix _PyThreadState_UncheckedGet() X-Git-Tag: v3.6.0a1~344^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4b8b86c6d57f630763ace512bfc302fb0c2b55f8;p=python pystate.h: fix _PyThreadState_UncheckedGet() Declare the function even if thread support is disabled. --- diff --git a/Include/pystate.h b/Include/pystate.h index b50b16b39c..0499a74280 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);