X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/68be9f090f422450d333385cf62c9b4d350674be..67c276bdb6187d41aba589cbceb5a62708af48b2:/src/motif/dcscreen.cpp?ds=inline

diff --git a/src/motif/dcscreen.cpp b/src/motif/dcscreen.cpp
index 1da45d5e39..71f3c01e54 100644
--- a/src/motif/dcscreen.cpp
+++ b/src/motif/dcscreen.cpp
@@ -9,10 +9,13 @@
 // Licence:   	wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "dcscreen.h"
 #endif
 
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
 #include "wx/window.h"
 #include "wx/frame.h"
 #include "wx/dcscreen.h"