]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/helpers.cpp
Script updates
[wxWidgets.git] / wxPython / src / helpers.cpp
index 9b7e3efb6d2ef738a5fc20f9e718f5dc58cb70ab..2a568e3e3852305a91f7237e371de02c15f6473a 100644 (file)
@@ -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;