]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/basemsw.cpp
check that the version of __sync_sub_and_fetch that returns a value is supported...
[wxWidgets.git] / src / msw / basemsw.cpp
index 5becc21693777f53813d933f6b9f9bf9968c3470..4ba9b8b091703a86d6c85b0929e686dc32f26717 100644 (file)
@@ -91,14 +91,15 @@ wxTimerImpl *wxConsoleAppTraits::CreateTimerImpl(wxTimer *timer)
 
 #endif // wxUSE_TIMER
 
 
 #endif // wxUSE_TIMER
 
-#if wxUSE_CONSOLE_EVENTLOOP
-
 wxEventLoopBase *wxConsoleAppTraits::CreateEventLoop()
 {
 wxEventLoopBase *wxConsoleAppTraits::CreateEventLoop()
 {
+#if wxUSE_CONSOLE_EVENTLOOP
     return new wxEventLoop();
     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)
 {
 
 WXDWORD wxConsoleAppTraits::WaitForThread(WXHANDLE hThread)
 {