X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8ab40c5227978dcca4e2a9a5dcc6eca3dd7c7d7c..d8d39b51e6b6be11c52436777b370f7dcef009c6:/src/gtk1/dcmemory.cpp?ds=sidebyside

diff --git a/src/gtk1/dcmemory.cpp b/src/gtk1/dcmemory.cpp
index 3c843eae1d..0ec10532b7 100644
--- a/src/gtk1/dcmemory.cpp
+++ b/src/gtk1/dcmemory.cpp
@@ -7,10 +7,13 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "dcmemory.h"
 #endif
 
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
 #include "wx/dcmemory.h"
 
 #include <gdk/gdk.h>