X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/019faef468c1558315586be8f9071acbdbc6a385..b77b87881bae2e6306366d79e7fe160334b3d4a2:/src/gtk/icon.cpp?ds=sidebyside

diff --git a/src/gtk/icon.cpp b/src/gtk/icon.cpp
index 05c1089158..ef9780a56c 100644
--- a/src/gtk/icon.cpp
+++ b/src/gtk/icon.cpp
@@ -7,10 +7,13 @@
 // Licence:   	wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "icon.h"
 #endif
 
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
 #include "wx/icon.h"
 
 //-----------------------------------------------------------------------------