Skip to content

Commit c1f6b6e

Browse files
committed
pystate.h: fix _PyThreadState_UncheckedGet()
Declare the function even if thread support is disabled.
1 parent 7591538 commit c1f6b6e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Include/pystate.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,9 @@ PyAPI_FUNC(void) _PyGILState_Reinit(void);
173173
* the caller needn't check for NULL). */
174174
PyAPI_FUNC(PyThreadState *) PyThreadState_Get(void);
175175

176-
#ifdef WITH_THREAD
177176
/* Similar to PyThreadState_Get(), but don't issue a fatal error
178177
* if it is NULL. */
179178
PyAPI_FUNC(PyThreadState *) _PyThreadState_UncheckedGet(void);
180-
#endif
181179

182180
PyAPI_FUNC(PyThreadState *) PyThreadState_Swap(PyThreadState *);
183181
PyAPI_FUNC(PyObject *) PyThreadState_GetDict(void);

0 commit comments

Comments
 (0)