]> git.saurik.com Git - wxWidgets.git/commitdiff
added correct temp folder path for mac classic
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 3 Jan 2002 09:47:22 +0000 (09:47 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 3 Jan 2002 09:47:22 +0000 (09:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filename.cpp

index f8d725c52398a976cce5632c783bbf141feac658..0499c50adb978fed2eaa2e821a88444d672c405e 100644 (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;