From b1479bec02f7cf426e44d273a40a2a31b4c6e0ae Mon Sep 17 00:00:00 2001 From: michi_cc Date: Sat, 14 Mar 2009 00:25:59 +0000 Subject: (svn r15706) -Fix: Make sure the filename passed to unlink() is always in file system encoding. --- src/stdafx.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/stdafx.h') 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); -- cgit v1.2.3-54-g00ecf