X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c74e7fe1de14f32dcd6f3c9cdd727de540bbd0e..4def3b359546ee186b3db723db719f85b761f36a:/src/common/ffile.cpp?ds=sidebyside diff --git a/src/common/ffile.cpp b/src/common/ffile.cpp index 4bca0e0e2e..a3eaac2586 100644 --- a/src/common/ffile.cpp +++ b/src/common/ffile.cpp @@ -64,7 +64,7 @@ bool wxFFile::Open(const wxChar *filename, const char *mode) tmp_fname = new char[fname_len]; wxWX2MB(tmp_fname, filename, fname_len); -#ifdef __WXMAC__ +#if defined(__WXMAC__) && !defined(__UNIX__) m_fp = fopen(wxUnix2MacFilename( tmp_fname ), mode); #else m_fp = fopen(tmp_fname, mode); @@ -72,7 +72,7 @@ bool wxFFile::Open(const wxChar *filename, const char *mode) delete tmp_fname; #else -#ifdef __WXMAC__ +#if defined(__WXMAC__) && !defined(__UNIX__) m_fp = fopen(wxUnix2MacFilename( filename ), mode); #else m_fp = fopen(filename, mode);