forked from mirror/OpenTTD
(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.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user