X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03e11df5470fd64d9d9a669d0b50b84c2d714736..940718f06e8903c9ccc9e54b51b67653b27a97a1:/src/mac/pnghand.cpp?ds=sidebyside diff --git a/src/mac/pnghand.cpp b/src/mac/pnghand.cpp index 6134439271..af7b3a6f99 100644 --- a/src/mac/pnghand.cpp +++ b/src/mac/pnghand.cpp @@ -414,7 +414,11 @@ bool wxPNGReader::ReadFile(char * ImageFileName) wxPNGReaderIter iter(this); /* open the file */ +#ifndef __UNIX__ fp = fopen(wxUnix2MacFilename( ImageFileName ), "rb"); +#else + fp = fopen( ImageFileName , "rb" ); +#endif if (!fp) return FALSE;