Simplified BC++ makefiles; C++Builder 1.0 compilation seems to work;
changed #ifdef -> #if for wxUSE_STD_IOSTREAM; #ifdefed thread usage in app.cpp. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -38,7 +38,10 @@
|
||||
#include "wx/msw/private.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/module.h"
|
||||
|
||||
#if wxUSE_THREADS
|
||||
#include "wx/thread.h"
|
||||
#endif
|
||||
|
||||
#if wxUSE_WX_RESOURCES
|
||||
#include "wx/resource.h"
|
||||
@@ -868,11 +871,12 @@ void wxApp::OnIdle(wxIdleEvent& event)
|
||||
// idle events
|
||||
event.RequestMore(TRUE);
|
||||
}
|
||||
|
||||
#if wxUSE_THREADS
|
||||
// give a chance to all other threads to perform GUI calls
|
||||
wxMutexGuiLeave();
|
||||
::Sleep(0);
|
||||
wxMutexGuiEnter();
|
||||
#endif
|
||||
|
||||
s_inOnIdle = FALSE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user