X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/81df6af392f10b209044b1f5d13550fbe54ba5c5..7e38638c3499c679f25ec0029931aad8e62e70d3:/src/msw/evtloop.cpp diff --git a/src/msw/evtloop.cpp b/src/msw/evtloop.cpp index 42e403787c..601b8b870b 100644 --- a/src/msw/evtloop.cpp +++ b/src/msw/evtloop.cpp @@ -32,18 +32,14 @@ #endif //WX_PRECOMP #include "wx/evtloop.h" - - +#include "wx/thread.h" #include "wx/except.h" #include "wx/ptr_scpd.h" - #include "wx/msw/private.h" #if wxUSE_GUI #include "wx/tooltip.h" #if wxUSE_THREADS - #include "wx/thread.h" - // define the list of MSG strutures WX_DECLARE_LIST(MSG, wxMsgList); @@ -307,6 +303,8 @@ void wxGUIEventLoop::WakeUp() #else // !wxUSE_GUI +#if wxUSE_CONSOLE_EVENTLOOP + void wxConsoleEventLoop::OnNextIteration() { if ( wxTheApp ) @@ -334,10 +332,12 @@ bool wxConsoleEventLoop::Dispatch() } else { - wxLogDebug(_T("Ignoring unexpected message %d"), msg.message); + ::DispatchMessage(&msg); } return !m_shouldExit; } +#endif // wxUSE_CONSOLE_EVENTLOOP + #endif //wxUSE_GUI