#include "wx/msw/winundef.h"
#endif
+#if defined(__WXMAC__)
+ #include "wx/mac/private.h" // includes mac headers
+#endif
+
// utime() is POSIX so should normally be available on all Unices
#ifdef __UNIX_LIKE__
#include <sys/types.h>
#else // !Windows, !OS/2
if ( dir.empty() )
{
-#if defined( __WXMAC__ ) && !defined(__DARWIN__)
- dir = wxMacFindFolder( (short) kOnSystemDisk, pTemporaryFolder, kCreateFolder ) ;
-#else
+#if defined(__WXMAC__) && !defined(__DARWIN__)
+ dir = wxMacFindFolder( (short) kOnSystemDisk, pTemporaryFolder, kCreateFolder ) ;
+#else // !Mac
dir = wxGetenv(_T("TMP"));
- if ( path.empty() )
+ if ( dir.empty() )
{
dir = wxGetenv(_T("TEMP"));
}
dir = _T("/tmp");
#endif
}
-#endif
+#endif // Mac/!Mac
}
path = dir;