]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filename.cpp
Choose a legal default font on DC creation.
[wxWidgets.git] / src / common / filename.cpp
index 9b61e662e5d38d2f65e10805a5657de5b9d175d1..451effbc3c96c5dc52de539211f32f979eaeb1b0 100644 (file)
@@ -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