Merge pull request #208 from joshuawarner32/master

fix build on mingw
This commit is contained in:
Joel Dice 2014-03-24 11:03:19 -06:00
commit 2a6acfcbe5

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;