From: Vadim Zeitlin Date: Sat, 21 Jul 2007 02:20:53 +0000 (+0000) Subject: define CreateEventLoop() even if wxUSE_CONSOLE_EVENTLOOP == 0 (because it's declared... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e0f88b1ac7931c2f118a885cad894a1dc9ec7615 define CreateEventLoop() even if wxUSE_CONSOLE_EVENTLOOP == 0 (because it's declared pure virtual in the base class), just return NULL from it git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/basemsw.cpp b/src/msw/basemsw.cpp index 5becc21693..4ba9b8b091 100644 --- a/src/msw/basemsw.cpp +++ b/src/msw/basemsw.cpp @@ -91,14 +91,15 @@ wxTimerImpl *wxConsoleAppTraits::CreateTimerImpl(wxTimer *timer) #endif // wxUSE_TIMER -#if wxUSE_CONSOLE_EVENTLOOP - wxEventLoopBase *wxConsoleAppTraits::CreateEventLoop() { +#if wxUSE_CONSOLE_EVENTLOOP return new wxEventLoop(); +#else // !wxUSE_CONSOLE_EVENTLOOP + return NULL; +#endif // wxUSE_CONSOLE_EVENTLOOP/!wxUSE_CONSOLE_EVENTLOOP } -#endif // wxUSE_CONSOLE_EVENTLOOP WXDWORD wxConsoleAppTraits::WaitForThread(WXHANDLE hThread) {