From 4b8b86c6d57f630763ace512bfc302fb0c2b55f8 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 25 Mar 2016 00:54:18 +0100 Subject: pystate.h: fix _PyThreadState_UncheckedGet() Declare the function even if thread support is disabled. --- Include/pystate.h | 2 -- 1 file changed, 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); -- cgit v0.12