X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/518b5d2ffbaf7422195537a5512e791be4497591..222702b112dcc7bebe018d6f4d66fe469fefd02c:/src/gtk/threadno.cpp

diff --git a/src/gtk/threadno.cpp b/src/gtk/threadno.cpp
index 4ac3f05954..c31f6c8454 100644
--- a/src/gtk/threadno.cpp
+++ b/src/gtk/threadno.cpp
@@ -9,13 +9,16 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "thread.h"
 #endif
 
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#include "wx/thread.h"
 #include "wx/wx.h"
 #include "wx/module.h"
-#include "wx/thread.h"
 #include "wx/log.h"
 
 wxMutex::wxMutex()