diff src/fios.cpp @ 6251:9953c75f16bc draft

(svn r9055) -Codechange: Change windows unicode handling and allow a pure non-unicode build to function. Win9x binaries will be possible with mingw/nightly system.
author Darkvater <Darkvater@openttd.org>
date Wed, 07 Mar 2007 18:58:28 +0000
parents 57363e064324
children 85a1a79387a2
line wrap: on
line diff
--- a/src/fios.cpp
+++ b/src/fios.cpp
@@ -18,6 +18,7 @@
 #include <sys/stat.h>
 
 #ifdef WIN32
+# include <tchar.h>
 # include <io.h>
 #else
 # include <unistd.h>
@@ -171,8 +172,8 @@
 	snprintf(buf, size, "%s" PATHSEP "%s%s", _fios_path, name, extension);
 }
 
-#if defined(WIN32) || defined(WIN64)
-# define unlink _wunlink
+#if defined(WIN32)
+# define unlink _tunlink
 #endif
 
 bool FiosDelete(const char *name)