aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schuh <andreas.schuh.84@gmail.com>2018-11-09 15:49:02 +0000
committerAndreas Schuh <andreas.schuh.84@gmail.com>2018-11-09 16:16:24 +0000
commitb051bace27a6ac03fc0cbbeef117fe1d375aca1b (patch)
tree39bb70fa827a87fdf39d900cfbb3a0643dc610b7
parent7e709881881c2663569cd49a93e5c8d9228d868e (diff)
downloadgflags-b051bace27a6ac03fc0cbbeef117fe1d375aca1b.tar.gz
fix: Build with _UNICODE support on Windows
-rw-r--r--src/gflags.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gflags.cc b/src/gflags.cc
index e0171fe..8f5aa0b 100644
--- a/src/gflags.cc
+++ b/src/gflags.cc
@@ -1341,8 +1341,8 @@ string CommandLineFlagParser::ProcessOptionsFromStringLocked(
|| fnmatch(glob.c_str(), ProgramInvocationName(), FNM_PATHNAME) == 0
|| fnmatch(glob.c_str(), ProgramInvocationShortName(), FNM_PATHNAME) == 0
#elif defined(HAVE_SHLWAPI_H)
- || PathMatchSpec(glob.c_str(), ProgramInvocationName())
- || PathMatchSpec(glob.c_str(), ProgramInvocationShortName())
+ || PathMatchSpecA(glob.c_str(), ProgramInvocationName())
+ || PathMatchSpecA(glob.c_str(), ProgramInvocationShortName())
#endif
) {
flags_are_relevant = true;