Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a33deeb

Browse files
committed
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.
1 parent c9d59c6 commit a33deeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ignore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static int does_negate_pattern(git_attr_fnmatch *rule, git_attr_fnmatch *neg)
5959
if (neg->flags & GIT_ATTR_FNMATCH_ICASE)
6060
cmp = git__strncasecmp;
6161
else
62-
cmp = strncmp;
62+
cmp = git__strncmp;
6363

6464
/* If lengths match we need to have an exact match */
6565
if (rule->length == neg->length) {

0 commit comments

Comments
 (0)