projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't use the PyGILState_* APIs with Python 2.3, it causes a problem
[wxWidgets.git]
/
wxPython
/
src
/
helpers.cpp
diff --git
a/wxPython/src/helpers.cpp
b/wxPython/src/helpers.cpp
index 9b7e3efb6d2ef738a5fc20f9e718f5dc58cb70ab..2a568e3e3852305a91f7237e371de02c15f6473a 100644
(file)
--- 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;