A fix for when wxPython is compiled with no threads
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -145,7 +145,11 @@ IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEnc
|
|||||||
|
|
||||||
|
|
||||||
bool wxThread_IsMain() {
|
bool wxThread_IsMain() {
|
||||||
|
#ifdef WXP_WITH_THREAD
|
||||||
return wxThread::IsMain();
|
return wxThread::IsMain();
|
||||||
|
#else
|
||||||
|
return TRUE;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
class wxPyTipProvider : public wxTipProvider {
|
class wxPyTipProvider : public wxTipProvider {
|
||||||
|
@@ -410,7 +410,11 @@ public:
|
|||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
bool wxThread_IsMain() {
|
bool wxThread_IsMain() {
|
||||||
|
#ifdef WXP_WITH_THREAD
|
||||||
return wxThread::IsMain();
|
return wxThread::IsMain();
|
||||||
|
#else
|
||||||
|
return TRUE;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
@@ -145,7 +145,11 @@ IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEnc
|
|||||||
|
|
||||||
|
|
||||||
bool wxThread_IsMain() {
|
bool wxThread_IsMain() {
|
||||||
|
#ifdef WXP_WITH_THREAD
|
||||||
return wxThread::IsMain();
|
return wxThread::IsMain();
|
||||||
|
#else
|
||||||
|
return TRUE;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
class wxPyTipProvider : public wxTipProvider {
|
class wxPyTipProvider : public wxTipProvider {
|
||||||
|
Reference in New Issue
Block a user