X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/427ff66291af2d8dd34ff5ee68c81436997144a1..0bd3b8eca1d6ef2749797f34216493fce0edd8d6:/src/mac/carbon/pnghand.cpp diff --git a/src/mac/carbon/pnghand.cpp b/src/mac/carbon/pnghand.cpp index 583cbbab7a..3241b88a3a 100644 --- a/src/mac/carbon/pnghand.cpp +++ b/src/mac/carbon/pnghand.cpp @@ -21,10 +21,23 @@ # pragma hdrstop #endif +#if wxUSE_LIBPNG + #include #include #include +#if defined(__DARWIN__) +/* MW's math routines do certain things if __FP__ (the include guard around +CarbonCore's fp.h) is defined. CarbonCore's fp.h does certain things if +__cmath__ is defined so it seems the easy thing to do is to make sure +__cmath__ is effectively not defined which counteracts the MWERKS check +then when the real cmath is included everything will be okay. +*/ +#include +//#include +#endif //defined(__DARWIN__) + #if wxUSE_IOSTREAMH # include #else @@ -902,4 +915,4 @@ bool wxPNGFileHandler::SaveFile(const wxBitmap *bitmap, const wxString& name, in return FALSE; } - +#endif //wxUSE_LIBPNG