fix build on mingw, which somehow doesn't recognize the UNICODE macro correctly

This commit is contained in:
Joshua Warner 2014-03-24 10:51:44 -06:00
parent c5012cda72
commit 0e8d3d91ee

View File

@ -129,7 +129,7 @@ inline bool
exists(string_t path)
{
#ifdef PLATFORM_WINDOWS
return GetFileAttributes(path) != INVALID_FILE_ATTRIBUTES;
return GetFileAttributesW(path) != INVALID_FILE_ATTRIBUTES;
#else
STRUCT_STAT s;
return STAT(path, &s) == 0;