diff --git a/src/mac/carbon/icon.cpp b/src/mac/carbon/icon.cpp index 2317c911e5..4ec8afe377 100644 --- a/src/mac/carbon/icon.cpp +++ b/src/mac/carbon/icon.cpp @@ -170,6 +170,7 @@ bool wxIcon::LoadFile(const wxString& filename, wxBitmapType type, } else { +#if wxUSE_IMAGE wxImage loadimage(filename, type); if (loadimage.Ok()) { @@ -183,6 +184,9 @@ bool wxIcon::LoadFile(const wxString& filename, wxBitmapType type, CopyFromBitmap( bmp ) ; return true; } +#else + return false; +#endif } } return true ;