]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for non-threaded compilation (threads are still broken
authorKarsten Ballüder <ballueder@usa.net>
Wed, 12 Jan 2000 11:56:30 +0000 (11:56 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Wed, 12 Jan 2000 11:56:30 +0000 (11:56 +0000)
anyway!)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp
src/gtk1/window.cpp

index 623abc1151d41a5965f0bd5ad38f3170423e87ef..908c2d82c35e0ef65aeb8803aa8c0c636dec5797 100644 (file)
@@ -210,7 +210,11 @@ extern bool g_mainThreadLocked;
 
 #ifdef __WXDEBUG__
 
-#define DEBUG_MAIN_THREAD if (wxThread::IsMain() && g_mainThreadLocked) printf("gui reentrance");
+#if wxUSE_THREADS
+#   define DEBUG_MAIN_THREAD if (wxThread::IsMain() && g_mainThreadLocked) printf("gui reentrance");
+#else
+#   define DEBUG_MAIN_THREAD
+#endif
 
 static gint gtk_debug_focus_in_callback( GtkWidget *WXUNUSED(widget),
                                          GdkEvent *WXUNUSED(event),
index 623abc1151d41a5965f0bd5ad38f3170423e87ef..908c2d82c35e0ef65aeb8803aa8c0c636dec5797 100644 (file)
@@ -210,7 +210,11 @@ extern bool g_mainThreadLocked;
 
 #ifdef __WXDEBUG__
 
-#define DEBUG_MAIN_THREAD if (wxThread::IsMain() && g_mainThreadLocked) printf("gui reentrance");
+#if wxUSE_THREADS
+#   define DEBUG_MAIN_THREAD if (wxThread::IsMain() && g_mainThreadLocked) printf("gui reentrance");
+#else
+#   define DEBUG_MAIN_THREAD
+#endif
 
 static gint gtk_debug_focus_in_callback( GtkWidget *WXUNUSED(widget),
                                          GdkEvent *WXUNUSED(event),