diff options
author | Niels Martin Hansen <nielsm@indvikleren.dk> | 2021-02-21 20:48:21 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2021-02-23 11:25:39 +0100 |
commit | b427ddce887617f17aefdbe1f22ca1e00d013c3d (patch) | |
tree | 06fd938bd05dd716ba2d573978789f2c8e068505 /src/stdafx.h | |
parent | beeb9e0a1b1c6ceb61499edeb8cd6cf7999d12ea (diff) | |
download | openttd-b427ddce887617f17aefdbe1f22ca1e00d013c3d.tar.xz |
Codechange: Switch to explicit wide strings
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); |