mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 06:20:56 +00:00
fnmatch: Fix compilation under Windows
This commit is contained in:
parent
e9c6571d7f
commit
1e3300d840
@ -100,7 +100,7 @@ p_fnmatch(const char *pattern, const char *string, int flags)
|
|||||||
|
|
||||||
/* General case, use recursion. */
|
/* General case, use recursion. */
|
||||||
while ((test = *string) != EOS) {
|
while ((test = *string) != EOS) {
|
||||||
if (!fnmatch(pattern, string, flags & ~FNM_PERIOD))
|
if (!p_fnmatch(pattern, string, flags & ~FNM_PERIOD))
|
||||||
return (0);
|
return (0);
|
||||||
if (test == '/' && (flags & FNM_PATHNAME))
|
if (test == '/' && (flags & FNM_PATHNAME))
|
||||||
break;
|
break;
|
||||||
@ -162,7 +162,7 @@ rangematch(const char *pattern, char test, int flags, char **newp)
|
|||||||
* consistency with the regular expression syntax.
|
* consistency with the regular expression syntax.
|
||||||
* J.T. Conklin (conklin@ngai.kaleida.com)
|
* J.T. Conklin (conklin@ngai.kaleida.com)
|
||||||
*/
|
*/
|
||||||
if ((negate = (*pattern == '!' || *pattern == '^')))
|
if ((negate = (*pattern == '!' || *pattern == '^')) != 0)
|
||||||
++pattern;
|
++pattern;
|
||||||
|
|
||||||
if (flags & FNM_CASEFOLD)
|
if (flags & FNM_CASEFOLD)
|
||||||
|
Loading…
Reference in New Issue
Block a user