X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..914955aaa034862c3b9b827463cde26455d06c79:/src/mac/carbon/pnghand.cpp diff --git a/src/mac/carbon/pnghand.cpp b/src/mac/carbon/pnghand.cpp index b030b8d80b..bbcfcbec45 100644 --- a/src/mac/carbon/pnghand.cpp +++ b/src/mac/carbon/pnghand.cpp @@ -6,10 +6,10 @@ // Created: 04/01/98 // RCS-ID: $Id$ // Copyright: (c) Julian Smart -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) # pragma implementation "pngread.h" # pragma implementation "pnghand.h" #endif @@ -21,10 +21,23 @@ # pragma hdrstop #endif +#if 0 // 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,3 +915,4 @@ bool wxPNGFileHandler::SaveFile(const wxBitmap *bitmap, const wxString& name, in return FALSE; } +#endif //wxUSE_LIBPNG