summaryrefslogtreecommitdiff
path: root/src/stdafx.h
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2010-05-11 20:44:58 +0000
committerglx <glx@openttd.org>2010-05-11 20:44:58 +0000
commit26bf9a13deea2da71142a6259ede951e08e75d01 (patch)
tree9cefd74dbc815b9b5c3ef5c795e712ff2ed4c2ca /src/stdafx.h
parent1c3c7da1f20689023530343424897d3588f35f79 (diff)
downloadopenttd-26bf9a13deea2da71142a6259ede951e08e75d01.tar.xz
(svn r19787) -Fix: compilation with MinGW GCC 4.5.0 and UNICODE
Diffstat (limited to 'src/stdafx.h')
-rw-r--r--src/stdafx.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stdafx.h b/src/stdafx.h
index dcd0d4a6a..b96162266 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -251,6 +251,7 @@
/* XXX - WinCE without MSVCRT doesn't support wfopen, so it seems */
#if !defined(WINCE)
+ namespace std { using ::_tfopen; }
#define fopen(file, mode) _tfopen(OTTD2FS(file), _T(mode))
#define unlink(file) _tunlink(OTTD2FS(file))
#endif /* WINCE */