]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/tipdlg.cpp
Fixed toolbar crash for MinGW/Cygwin
[wxWidgets.git] / src / generic / tipdlg.cpp
index 6f9ba6f7df64556d91d501446f5a84e069ffa4dd..33a019fc1181eafca3a5229bb7054c9de028e0de 100644 (file)
@@ -198,7 +198,13 @@ wxTipDialog::wxTipDialog(wxWindow *parent,
 #if defined(__WXMSW__) || defined(__WXPM__)
     wxIcon icon("wxICON_TIP");
 #else
+    // XPM hack: make the arrays const
+    #define static static const
+
     #include "wx/generic/tip.xpm"
+
+    #undef static
+
     wxIcon icon(tipIcon);
 #endif
     wxStaticBitmap *bmp = new wxStaticBitmap(this, -1, icon);