Warning regarding PathMatchSpec() on Windows.

This commit is contained in:
Alan Mishchenko 2023-09-21 11:08:16 +08:00
parent 7fd4b01fb3
commit 73dac01c15
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ struct Scl_Tree_t_
static inline int Scl_LibertyGlobMatch(const char * pattern, const char * string) {
#ifdef _WIN32
return PathMatchSpec(string, pattern);
return PathMatchSpec(string, pattern); // if the compiler complains, add "-lshlwapi"
#else
return fnmatch(pattern, string, 0) == 0;
#endif