From: Stefan Csomor Date: Thu, 3 Jan 2002 09:47:22 +0000 (+0000) Subject: added correct temp folder path for mac classic X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4c4d66e1e486b8f5d3356d324080be031884eb5e added correct temp folder path for mac classic git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/filename.cpp b/src/common/filename.cpp index f8d725c523..0499c50adb 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -537,6 +537,9 @@ wxFileName::CreateTempFileName(const wxString& prefix, wxFile *fileTemp) #else // !Windows, !OS/2 if ( dir.empty() ) { +#if defined( __WXMAC__ ) && !defined(__DARWIN__) + dir = wxMacFindFolder( (short) kOnSystemDisk, pTemporaryFolder, kCreateFolder ) ; +#else dir = wxGetenv(_T("TMP")); if ( path.empty() ) { @@ -552,6 +555,7 @@ wxFileName::CreateTempFileName(const wxString& prefix, wxFile *fileTemp) dir = _T("/tmp"); #endif } +#endif } path = dir;