Index: Include/pystate.h =================================================================== --- Include/pystate.h (révision 68842) +++ Include/pystate.h (copie de travail) @@ -127,6 +127,8 @@ #define PyThreadState_GET() (_PyThreadState_Current) #endif +#ifdef WITH_THREAD + typedef enum {PyGILState_LOCKED, PyGILState_UNLOCKED} PyGILState_STATE; @@ -172,6 +174,8 @@ */ PyAPI_FUNC(PyThreadState *) PyGILState_GetThisThreadState(void); +#endif + /* The implementation of sys._current_frames() Returns a dict mapping thread id to that thread's current frame. */