X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/796a6ef04aea22ee72425317b8b9a249d8ca292b..dec48aa578d886cf26559dc80141fac5f628ff08:/src/mac/carbon/icon.cpp diff --git a/src/mac/carbon/icon.cpp b/src/mac/carbon/icon.cpp index 2317c911e5..956d8f72c3 100644 --- a/src/mac/carbon/icon.cpp +++ b/src/mac/carbon/icon.cpp @@ -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 ;