diff options
author | Nico Weber <nicolasweber@gmx.de> | 2018-04-05 18:19:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-05 18:19:05 (GMT) |
commit | e85f5ac86be249e6472b368ee7abbe98fe01bcd2 (patch) | |
tree | e01bbcc3277a9772c8f2a3f981305f45fb7662d1 /src/disk_interface.cc | |
parent | 26341ca0d652b6e50aa57fa176bf610480be5edd (diff) | |
parent | 59849864592b421e0a8f993011e7e5c2ab27e77b (diff) | |
download | Ninja-e85f5ac86be249e6472b368ee7abbe98fe01bcd2.zip Ninja-e85f5ac86be249e6472b368ee7abbe98fe01bcd2.tar.gz Ninja-e85f5ac86be249e6472b368ee7abbe98fe01bcd2.tar.bz2 |
Merge pull request #1348 from ngg/winunicode
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 f0f6346..8334d69 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; |