diff options
author | Darkvater <darkvater@openttd.org> | 2007-03-07 18:58:28 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2007-03-07 18:58:28 +0000 |
commit | 2536a14abd95098fa752835dce90db679a557721 (patch) | |
tree | ba99aff4f6b2c185df22ce8dd28562996f0a5441 /src/fios.cpp | |
parent | 5e1351b377bbb44238880a22b74dcc7793c89691 (diff) | |
download | openttd-2536a14abd95098fa752835dce90db679a557721.tar.xz |
(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.
Diffstat (limited to 'src/fios.cpp')
-rw-r--r-- | src/fios.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fios.cpp b/src/fios.cpp index 7f2f04548..3ba326dfc 100644 --- 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 @@ void FiosMakeSavegameName(char *buf, const char *name, size_t size) 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) |