]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/x11/icon.h
Blind bug fix to bug reported by Angel Kry.
[wxWidgets.git] / include / wx / x11 / icon.h
index 95ec79f429fc35f804d20fbcae2fc3d538289a92..c9f867a6a7b0e5123f0c7643156aee90a062fc49 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef _WX_ICON_H_
 #define _WX_ICON_H_
 
-#if defined(__GNUG__) && !defined(__APPLE__)
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma interface "icon.h"
 #endif
 
@@ -39,7 +39,7 @@ public:
     wxIcon( char **bits, int width=-1, int height=-1 );
 
     wxIcon(const wxIconLocation& loc)
-        : wxBitmap(loc.GetFileName(), wxBITMAP_TYPE_XPM)
+        : wxBitmap(loc.GetFileName(), wxBITMAP_TYPE_ANY)
     {
     }