Skip to content

Commit 77e37ff

Browse files
committed
py/mpthread: Include mpstate.h when defining GIL macros.
1 parent 15e6827 commit 77e37ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

py/mpthread.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ void mp_thread_mutex_unlock(mp_thread_mutex_t *mutex);
5050
#endif // MICROPY_PY_THREAD
5151

5252
#if MICROPY_PY_THREAD && MICROPY_PY_THREAD_GIL
53+
#include "py/mpstate.h"
5354
#define MP_THREAD_GIL_ENTER() mp_thread_mutex_lock(&MP_STATE_VM(gil_mutex), 1)
5455
#define MP_THREAD_GIL_EXIT() mp_thread_mutex_unlock(&MP_STATE_VM(gil_mutex))
5556
#else

0 commit comments

Comments
 (0)