]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/x11/icon.h
fixed uninitialized variable (depending on wxChoice ctor used it resulted in an out...
[wxWidgets.git] / include / wx / x11 / icon.h
index 95ec79f429fc35f804d20fbcae2fc3d538289a92..7ced9173c5a61fb892fbbd1054033f38986232a0 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
 
@@ -22,7 +22,7 @@
 // wxIcon
 //-----------------------------------------------------------------------------
 
-class wxIcon: public wxBitmap
+class WXDLLIMPEXP_CORE wxIcon: public wxBitmap
 {
 public:
     wxIcon();
@@ -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)
     {
     }