]> git.saurik.com Git - wxWidgets.git/commitdiff
define CreateEventLoop() even if wxUSE_CONSOLE_EVENTLOOP == 0 (because it's declared...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 21 Jul 2007 02:20:53 +0000 (02:20 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 21 Jul 2007 02:20:53 +0000 (02:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/basemsw.cpp

index 5becc21693777f53813d933f6b9f9bf9968c3470..4ba9b8b091703a86d6c85b0929e686dc32f26717 100644 (file)
@@ -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)
 {