Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'csync/src/std/c_string.c')
-rw-r--r--csync/src/std/c_string.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/csync/src/std/c_string.c b/csync/src/std/c_string.c
index 9d2c087ec..f1ca5f747 100644
--- a/csync/src/std/c_string.c
+++ b/csync/src/std/c_string.c
@@ -134,6 +134,14 @@ static char *c_iconv(const char* str, enum iconv_direction dir)
}
#endif /* defined(HAVE_ICONV) && defined(WITH_ICONV) */
+int c_strncasecmp(const char *a, const char *b, size_t n) {
+#ifdef _WIN32
+ return _strnicmp(a, b, n);
+#else
+ return strncasecmp(a, b, n);
+#endif
+}
+
int c_streq(const char *a, const char *b) {
register const char *s1 = a;
register const char *s2 = b;