(svn r19787) -Fix: compilation with MinGW GCC 4.5.0 and UNICODE

This commit is contained in:
glx 2010-05-11 20:44:58 +00:00
parent 1c3c7da1f2
commit 26bf9a13de
1 changed files with 1 additions and 0 deletions

View File

@ -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 */