X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5fde6fcc9b551340a194ae4c726db5ab64b5c594..fa1c12bdd76acc21ddb45b90bb53b2f58aed946d:/src/mac/dirdlg.cpp?ds=inline diff --git a/src/mac/dirdlg.cpp b/src/mac/dirdlg.cpp index 89b3892451..83533f1236 100644 --- a/src/mac/dirdlg.cpp +++ b/src/mac/dirdlg.cpp @@ -20,7 +20,7 @@ #include "wx/cmndata.h" -#if defined(__UNIX__) +#ifdef __DARWIN__ #include #else #include @@ -492,7 +492,7 @@ int wxDirDialog::ShowModal() } else { - m_path = wxMacFSSpec2UnixFilename( &reply.sfFile ) ; + m_path = wxMacFSSpec2MacFilename( &reply.sfFile ) ; return wxID_OK ; } return wxID_CANCEL; @@ -589,7 +589,7 @@ int wxDirDialog::ShowModal() name, &outFileSpec); // outFolderDirID = thePB.dirInfo.ioDrDirID; - m_path = wxMacFSSpec2UnixFilename( &outFileSpec ) ; + m_path = wxMacFSSpec2MacFilename( &outFileSpec ) ; return wxID_OK ; } return wxID_CANCEL;