diff options
author | michi_cc <michi_cc@openttd.org> | 2009-03-14 00:25:59 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2009-03-14 00:25:59 +0000 |
commit | 968a2c95f8f402ab17267edf698752d88d351e81 (patch) | |
tree | 61555d72d05f2c2429f6e54a9c8c0e9b11354a9e /src/stdafx.h | |
parent | f35e00844c7e9fcddc533c026336ca1bff3b8b5e (diff) | |
download | openttd-968a2c95f8f402ab17267edf698752d88d351e81.tar.xz |
(svn r15706) -Fix: Make sure the filename passed to unlink() is always in file system encoding.
Diffstat (limited to 'src/stdafx.h')
-rw-r--r-- | src/stdafx.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stdafx.h b/src/stdafx.h index b134cb940..1bb33bdd3 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) #define fopen(file, mode) _tfopen(OTTD2FS(file), _T(mode)) + #define unlink(file) _tunlink(OTTD2FS(file)) #endif /* WINCE */ const char *FS2OTTD(const TCHAR *name); |