pystate.h: fix _PyThreadState_UncheckedGet()

Declare the function even if thread support is disabled.
This commit is contained in:
Victor Stinner 2016-03-25 00:54:18 +01:00
parent 27461683a9
commit 4b8b86c6d5
1 changed files with 0 additions and 2 deletions

View File

@ -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);