diff options
author | Russell Belfer <rb@github.com> | 2012-11-14 22:37:13 -0800 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-11-14 22:37:13 -0800 |
commit | a277345e05507dfa0a3350d47df96d37063c929f (patch) | |
tree | 47f3a36d9a613027ad447b23fd86562d1135336d /src/pathspec.c | |
parent | 513e794ef47363b8900816a9b141b3eae81eb83e (diff) | |
download | libgit2-a277345e05507dfa0a3350d47df96d37063c929f.tar.gz |
Create internal strcmp variants for function ptrs
Using the builtin strcmp and strcasecmp as function pointers is
problematic on win32. This adds internal implementations and
divorces us from the platform linkage.
Diffstat (limited to 'src/pathspec.c')
-rw-r--r-- | src/pathspec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pathspec.c b/src/pathspec.c index 9632f5f13..fc6547afe 100644 --- a/src/pathspec.c +++ b/src/pathspec.c @@ -122,11 +122,11 @@ bool git_pathspec_match_path( fnmatch_flags = FNM_CASEFOLD; if (casefold) { - use_strcmp = strcasecmp; - use_strncmp = strncasecmp; + use_strcmp = git__strcasecmp; + use_strncmp = git__strncasecmp; } else { - use_strcmp = strcmp; - use_strncmp = strncmp; + use_strcmp = git__strcmp; + use_strncmp = git__strncmp; } git_vector_foreach(vspec, i, match) { |