diff options
author | Gergely Nagy <ngg@ngg.hu> | 2017-10-31 13:10:07 (GMT) |
---|---|---|
committer | Gergely Nagy <ngg@ngg.hu> | 2017-10-31 13:10:07 (GMT) |
commit | 59849864592b421e0a8f993011e7e5c2ab27e77b (patch) | |
tree | 207b1887bb23b7052a4e6ca2f3e2df05040cb049 /src/disk_interface.cc | |
parent | e234a7bdb6c42f4539c0ab09b624f191287c2c10 (diff) | |
download | Ninja-59849864592b421e0a8f993011e7e5c2ab27e77b.zip Ninja-59849864592b421e0a8f993011e7e5c2ab27e77b.tar.gz Ninja-59849864592b421e0a8f993011e7e5c2ab27e77b.tar.bz2 |
Fix building on Windows in UNICODE mode
Diffstat (limited to 'src/disk_interface.cc')
-rw-r--r-- | src/disk_interface.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/disk_interface.cc b/src/disk_interface.cc index 4b4c4c7..44b9491 100644 --- a/src/disk_interface.cc +++ b/src/disk_interface.cc @@ -70,7 +70,7 @@ TimeStamp TimeStampFromFileTime(const FILETIME& filetime) { TimeStamp StatSingleFile(const string& path, string* err) { WIN32_FILE_ATTRIBUTE_DATA attrs; - if (!GetFileAttributesEx(path.c_str(), GetFileExInfoStandard, &attrs)) { + if (!GetFileAttributesExA(path.c_str(), GetFileExInfoStandard, &attrs)) { DWORD win_err = GetLastError(); if (win_err == ERROR_FILE_NOT_FOUND || win_err == ERROR_PATH_NOT_FOUND) return 0; |