diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2018-02-28 12:20:23 +0000 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2018-03-10 17:45:25 +0000 |
commit | c24b15c36f41b217e98b2aaa04845002f6066b20 (patch) | |
tree | b28de5ae2ee7571970bc447bd3866ee953ad7117 | |
parent | 9ab8d15321191db6a613654c775cf3ad3ea32709 (diff) | |
download | libgit2-c24b15c36f41b217e98b2aaa04845002f6066b20.tar.gz |
win32: strncmp -> git__strncmp
The win32 C library is compiled cdecl, however when configured with
`STDCALL=ON`, our functions (and function pointers) will use the stdcall
calling convention. You cannot set a `__stdcall` function pointer to a
`__cdecl` function, so it's easier to just use our `git__strncmp`
instead of sorting that mess out.
-rw-r--r-- | src/ignore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ignore.c b/src/ignore.c index 8c224775f..9e1619cce 100644 --- a/src/ignore.c +++ b/src/ignore.c @@ -51,7 +51,7 @@ static int does_negate_pattern(git_attr_fnmatch *rule, git_attr_fnmatch *neg) if (neg->flags & GIT_ATTR_FNMATCH_ICASE) cmp = git__strncasecmp; else - cmp = strncmp; + cmp = git__strncmp; /* If lengths match we need to have an exact match */ if (rule->length == neg->length) { |