X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9bc8fded1b3e6e20da20c2471aead3d5761a6bcd..c6e62f74fcac5b62889b59e7ce7a41d0ce884d7b:/src/gtk1/window.cpp diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index 623abc1151..908c2d82c3 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -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),