]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/pnghand.cpp
corrected graying out, only to be executed when background is gray or white
[wxWidgets.git] / src / mac / carbon / pnghand.cpp
index 90b59669f0f9b09db8a669a73ea599adb3d5e940..193676f19550ea1cc0224d8b51427e66e0de8ec3 100644 (file)
@@ -31,7 +31,7 @@
 #   include <fstream>
 #endif
 
-#ifndef __WXMAC_X__
+#ifndef __DARWIN__
 #  include <windows.h>
 #endif
 #include "wx/msgdlg.h"
@@ -823,7 +823,7 @@ bool wxPNGReader::SaveXPM(char *filename, char *name)
     if ( !GetPalette() )
         return FALSE;
 
-    ofstream str(filename);
+    wxSTD ofstream str(filename);
     if ( str.bad() )
         return FALSE;