diff --git a/src/mac/carbon/pnghand.cpp b/src/mac/carbon/pnghand.cpp index 358515d283..193676f195 100644 --- a/src/mac/carbon/pnghand.cpp +++ b/src/mac/carbon/pnghand.cpp @@ -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; diff --git a/src/mac/pnghand.cpp b/src/mac/pnghand.cpp index 358515d283..193676f195 100644 --- a/src/mac/pnghand.cpp +++ b/src/mac/pnghand.cpp @@ -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;