Uses pathcmp() where appropriate instead of fnmatch().

This commit is contained in:
Andrea Mazzoleni 2013-06-01 22:49:15 +02:00
parent 2cc948a50c
commit a84bd62ee6
3 changed files with 7 additions and 6 deletions

4
util.c
View file

@ -660,8 +660,12 @@ int pathcmp(const char* a, const char* b)
#ifdef _WIN32
char ai[PATH_MAX];
char bi[PATH_MAX];
/* import to convert \ to / */
pathimport(ai, sizeof(ai), a);
pathimport(bi, sizeof(bi), b);
/* case insensitive compare in Windows */
return stricmp(ai, bi);
#else
return strcmp(a, b);