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
This commit is contained in:
Stefan Csomor
2002-01-03 09:47:22 +00:00
parent c9fdc1071b
commit 4c4d66e1e4

View File

@@ -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;