diff options
author | Kim Grasman <kim.grasman@gmail.com> | 2016-07-10 16:20:48 +0200 |
---|---|---|
committer | Kim Grasman <kim.grasman@gmail.com> | 2016-07-10 16:20:48 +0200 |
commit | c316bc66c79c8ddfa1af95650ba411d8252f6d32 (patch) | |
tree | aa423509def6fa7148db8ab9f2d17a6852377e17 | |
parent | 2e5d018a87949ec893bf6a8430ff62210f51a125 (diff) |
Explicitly use ASCII version of PathMatchSpec
Clang r273599 switched the UNICODE define on by default, which makes the
entire Windows API default to its wide-char functions.
At first glance, we won't be handling Unicode paths anyway, so use
PathMatchSpecA explicitly.
-rw-r--r-- | port.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -66,7 +66,7 @@ class OstreamVoidifier { #define snprintf _snprintf #define NOMINMAX // Prevent Windows headers from redefining min/max. -#include "Shlwapi.h" // for PathMatchSpec +#include "Shlwapi.h" // for PathMatchSpecA // This undef is necessary to prevent conflicts between llvm // and Windows headers. @@ -74,7 +74,7 @@ class OstreamVoidifier { #undef interface inline bool GlobMatchesPath(const char *glob, const char *path) { - return PathMatchSpec(path, glob); + return PathMatchSpecA(path, glob); } #else // #if defined(_WIN32) |