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/util.h | |
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/util.h')
-rw-r--r-- | src/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index 23d4bc6e9..cb1c4fdc2 100644 --- a/src/util.h +++ b/src/util.h @@ -134,6 +134,11 @@ extern int git__bsearch( extern int git__strcmp_cb(const void *a, const void *b); +extern int git__strcmp(const char *a, const char *b); +extern int git__strcasecmp(const char *a, const char *b); +extern int git__strncmp(const char *a, const char *b, size_t sz); +extern int git__strncasecmp(const char *a, const char *b, size_t sz); + typedef struct { short refcount; void *owner; |