]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/icon.cpp
don't crash under GTK1 if we failed to get GdkFont in GetTextExtent()
[wxWidgets.git] / src / gtk / icon.cpp
index 05c1089158624aafc3057a570c22c04204fc849b..ef9780a56cabe17cdc35978a8e3523cc2f748bf2 100644 (file)
@@ -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"
 
 //-----------------------------------------------------------------------------