diff options
Diffstat (limited to 'src/stdafx.h')
-rw-r--r-- | src/stdafx.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/stdafx.h b/src/stdafx.h index 33cf2b05b..42a6106e8 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -260,12 +260,12 @@ # include <tchar.h> # include <io.h> - namespace std { using ::_tfopen; } -# define fopen(file, mode) _tfopen(OTTD2FS(file), _T(mode)) -# define unlink(file) _tunlink(OTTD2FS(file)) + namespace std { using ::_wfopen; } +# define fopen(file, mode) _wfopen(OTTD2FS(file), _T(mode)) +# define unlink(file) _wunlink(OTTD2FS(file)) - const char *FS2OTTD(const TCHAR *name); - const TCHAR *OTTD2FS(const char *name, bool console_cp = false); + const char *FS2OTTD(const wchar_t *name); + const wchar_t *OTTD2FS(const char *name, bool console_cp = false); # else # define fopen(file, mode) fopen(OTTD2FS(file), mode) const char *FS2OTTD(const char *name); |