summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-02-28 12:20:23 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2018-02-28 12:20:23 +0000
commita33deeb4ae86a1e0023d23521785e972e59258d0 (patch)
treebb74f4497c82f75b98ecc125cf583d7d35a5ae08
parentc9d59c6140fc365eb7ab950fb1a33187a949d403 (diff)
downloadlibgit2-ethomson/strncmp_stdcall.tar.gz
win32: strncmp -> git__strncmpethomson/strncmp_stdcall
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ignore.c b/src/ignore.c
index ddbcaf3bf..dddd7e81e 100644
--- a/src/ignore.c
+++ b/src/ignore.c
@@ -59,7 +59,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) {