author | glx |
Tue, 22 Jan 2008 15:47:40 +0000 | |
changeset 8874 | c165c8f53102 |
parent 8873 | 99dee7eb17e0 |
child 8875 | ffcab947226b |
src/fios.cpp | file | annotate | diff | comparison | revisions |
--- a/src/fios.cpp Tue Jan 22 15:40:29 2008 +0000 +++ b/src/fios.cpp Tue Jan 22 15:47:40 2008 +0000 @@ -19,6 +19,8 @@ #ifdef WIN32 # include <tchar.h> # include <io.h> +# define access _taccess +# define unlink _tunlink #else # include <unistd.h> #endif /* WIN32 */ @@ -202,7 +204,7 @@ CloseHandle(hand); return 0; #else - return access(filename, 0) == 0; + return access(OTTD2FS(filename), 0) == 0; #endif }