#ifdef __GNUG__
// Note: this is done in utilscmn.cpp now.
-// #pragma implementation
// #pragma implementation "utils.h"
#endif
#include <string.h>
#include <stdarg.h>
-#ifndef __DARWIN__
-# include "morefile.h"
-# include "moreextr.h"
-#endif
+#include "MoreFiles.h"
+#include "MoreFilesExtras.h"
#ifndef __DARWIN__
// defined in unix/utilsunx.cpp for Mac OS X
void wxUsleep(unsigned long milliseconds)
{
- clock_t start = clock() ;
- do
- {
- YieldToAnyThread() ;
- } while( clock() - start < milliseconds / CLOCKS_PER_SEC ) ;
+ clock_t start = clock() ;
+ do
+ {
+ YieldToAnyThread() ;
+ } while( clock() - start < milliseconds / CLOCKS_PER_SEC ) ;
}
void wxSleep(int nSecs)
return (wxBusyCursorCount > 0);
}
-#ifndef __DARWIN__
-wxString wxMacFindFolder( short vol,
- OSType folderType,
- Boolean createFolder)
+wxString wxMacFindFolder( short vol,
+ OSType folderType,
+ Boolean createFolder)
{
short vRefNum ;
long dirID ;
FSSpec file ;
if ( FSMakeFSSpec( vRefNum , dirID , "\p" , &file ) == noErr )
{
- strDir = wxMacFSSpec2MacFilename( &file ) + ":" ;
+ strDir = wxMacFSSpec2MacFilename( &file ) + wxFILE_SEP_PATH ;
}
}
return strDir ;
}
-#endif
#ifndef __DARWIN__
char *wxGetUserHome (const wxString& user)
// TODO
return NULL;
}
-#endif
-#ifndef __DARWIN__
bool wxGetDiskSpace(const wxString& path, wxLongLong *pTotal, wxLongLong *pFree)
{
if ( path.empty() )