1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-15 18:49:10 +00:00

(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

View File

@@ -251,6 +251,7 @@
/* XXX - WinCE without MSVCRT doesn't support wfopen, so it seems */ /* XXX - WinCE without MSVCRT doesn't support wfopen, so it seems */
#if !defined(WINCE) #if !defined(WINCE)
namespace std { using ::_tfopen; }
#define fopen(file, mode) _tfopen(OTTD2FS(file), _T(mode)) #define fopen(file, mode) _tfopen(OTTD2FS(file), _T(mode))
#define unlink(file) _tunlink(OTTD2FS(file)) #define unlink(file) _tunlink(OTTD2FS(file))
#endif /* WINCE */ #endif /* WINCE */