X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..6415637cb0da1aa1eb0b6a73b9f1757e80f53a9a:/src/common/filename.cpp diff --git a/src/common/filename.cpp b/src/common/filename.cpp index 9b61e662e5..451effbc3c 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -665,6 +665,8 @@ wxFileName::CreateTempFileName(const wxString& prefix, wxFile *fileTemp) // default #if defined(__DOS__) || defined(__OS2__) dir = _T("."); + #elif defined(__WXMAC__) + dir = wxMacFindFolder( (short) kOnSystemDisk, kTemporaryFolderType, kCreateFolder ) ; #else dir = _T("/tmp"); #endif @@ -1890,6 +1892,8 @@ bool wxFileName::SetTimes(const wxDateTime *dtAccess, } } #elif defined(__UNIX_LIKE__) || (defined(__DOS__) && defined(__WATCOMC__)) + wxUnusedVar(dtCreate); + if ( !dtAccess && !dtMod ) { // can't modify the creation time anyhow, don't try