X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/85ee4fe9065df3ea6c94035f7047ba377b3f772a..822e03eeffe940efdcae10f44f46bd49e6f76131:/wxPython/src/helpers.cpp diff --git a/wxPython/src/helpers.cpp b/wxPython/src/helpers.cpp index 9b7e3efb6d..2a568e3e38 100644 --- a/wxPython/src/helpers.cpp +++ b/wxPython/src/helpers.cpp @@ -544,8 +544,10 @@ void __wxPyPreStart(PyObject* moduleDict) #endif #ifdef WXP_WITH_THREAD +#if wxPyUSE_GIL_STATE + PyEval_InitThreads(); +#else PyEval_InitThreads(); -#if !wxPyUSE_GIL_STATE wxPyTStates = new wxPyThreadStateArray; wxPyTMutex = new wxMutex;