X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/223d09f6b523aac674ef9b72a883dfa8d37c5d4e..7df9fbc3f11f6239ed7417964c0c50ea77b7b7e7:/src/common/ffile.cpp diff --git a/src/common/ffile.cpp b/src/common/ffile.cpp index afbd6d14ea..a3eaac2586 100644 --- a/src/common/ffile.cpp +++ b/src/common/ffile.cpp @@ -64,12 +64,20 @@ bool wxFFile::Open(const wxChar *filename, const char *mode) tmp_fname = new char[fname_len]; wxWX2MB(tmp_fname, filename, fname_len); +#if defined(__WXMAC__) && !defined(__UNIX__) + m_fp = fopen(wxUnix2MacFilename( tmp_fname ), mode); +#else m_fp = fopen(tmp_fname, mode); +#endif delete tmp_fname; +#else +#if defined(__WXMAC__) && !defined(__UNIX__) + m_fp = fopen(wxUnix2MacFilename( filename ), mode); #else m_fp = fopen(filename, mode); #endif +#endif if ( !m_fp )