]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/icon.cpp
correcting condition: only interfere in the non-native case
[wxWidgets.git] / src / mac / carbon / icon.cpp
index 2317c911e58f29dda7934f37e9b2aaec853ab780..956d8f72c3f992f338b6c0bb0ae3c20b1fd1a150 100644 (file)
@@ -17,9 +17,7 @@
 
 #include "wx/icon.h"
 
-#if !USE_SHARED_LIBRARIES
 IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxBitmap)
-#endif
 
 #include "wx/image.h"
 #include "wx/mac/private.h"
@@ -170,6 +168,7 @@ bool wxIcon::LoadFile(const wxString& filename, wxBitmapType type,
         }
         else
         {
+#if wxUSE_IMAGE
             wxImage loadimage(filename, type);
             if (loadimage.Ok()) 
             {
@@ -183,6 +182,7 @@ bool wxIcon::LoadFile(const wxString& filename, wxBitmapType type,
                 CopyFromBitmap( bmp ) ;
                 return true;
             }
+#endif
         }
     }
     return true ;