#endif // native Win compiler
#ifdef __GNUWIN32__
+ #include <wchar.h>
#ifndef __TWIN32__
#include <sys/unistd.h>
#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));