mirror of
https://github.com/corda/corda.git
synced 2025-01-19 11:16:54 +00:00
fix build on mingw, which somehow doesn't recognize the UNICODE macro correctly
This commit is contained in:
parent
c5012cda72
commit
0e8d3d91ee
@ -129,7 +129,7 @@ inline bool
|
|||||||
exists(string_t path)
|
exists(string_t path)
|
||||||
{
|
{
|
||||||
#ifdef PLATFORM_WINDOWS
|
#ifdef PLATFORM_WINDOWS
|
||||||
return GetFileAttributes(path) != INVALID_FILE_ATTRIBUTES;
|
return GetFileAttributesW(path) != INVALID_FILE_ATTRIBUTES;
|
||||||
#else
|
#else
|
||||||
STRUCT_STAT s;
|
STRUCT_STAT s;
|
||||||
return STAT(path, &s) == 0;
|
return STAT(path, &s) == 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user