summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Grasman <kim.grasman@gmail.com>2016-07-10 16:20:48 +0200
committerKim Grasman <kim.grasman@gmail.com>2016-07-10 16:20:48 +0200
commitc316bc66c79c8ddfa1af95650ba411d8252f6d32 (patch)
treeaa423509def6fa7148db8ab9f2d17a6852377e17
parent2e5d018a87949ec893bf6a8430ff62210f51a125 (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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/port.h b/port.h
index 5b54bc5..5bf8f38 100644
--- a/port.h
+++ b/port.h
@@ -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)