#endif // native Win compiler
#ifdef __GNUWIN32__
+ #include <wchar.h>
#ifndef __TWIN32__
#include <sys/unistd.h>
#endif
bool
wxIsAbsolutePath (const wxString& filename)
{
+#ifdef __WXMAC__
+ if (filename != wxT(""))
+ {
+ if( filename.Find(':') != wxNOT_FOUND && filename[0] != ':' )
+ return TRUE ;
+ }
+ return FALSE ;
+#else
if (filename != wxT(""))
{
if (filename[0] == wxT('/')
return TRUE;
}
return FALSE;
+#endif
}
/*
FSpLocationFromFullPath( strlen(path ) , path , spec ) ;
}
-/*
static char sMacFileNameConversion[ 1000 ] ;
wxString wxMac2UnixFilename (const char *str)
return wxMac2UnixFilename( wxMacFSSpec2MacFilename( spec) ) ;
}
-void wxMacFilename2FSSpec( const char *path , FSSpec *spec )
-{
- FSpLocationFromFullPath( strlen(path ) , path , spec ) ;
-}
-
void wxUnixFilename2FSSpec( const char *path , FSSpec *spec )
{
wxString var = wxUnix2MacFilename( path ) ;
wxMacFilename2FSSpec( var , spec ) ;
}
-*/
+
#endif
void
wxDos2UnixFilename (char *s)
bool wxRemoveFile(const wxString& file)
{
-#if defined(__VISUALC__) || defined(__BORLANDC__) || defined(__WATCOMC__)
+#if defined(__VISUALC__) \
+ || defined(__BORLANDC__) \
+ || defined(__WATCOMC__) \
+ || defined(__GNUWIN32__)
int res = wxRemove(file);
#else
int res = unlink(OS_FILENAME(file));