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:
authorDaniel Molkentin <daniel@molkentin.de>2014-10-24 23:39:21 +0400
committerDaniel Molkentin <daniel@molkentin.de>2014-10-24 23:39:21 +0400
commitd0b40bab4773d29e762be70e1ab2e0da6ee4e69a (patch)
tree5f43d98b8be7e53cd401319ed31ed89c6c2c7c1b /csync/src/std/c_string.c
parent0e828d802e1e37d01bd6c1d53a20181f493b540c (diff)
parentd76192cce12658d08122204df75c3c29b59895a5 (diff)
Merge pull request #2391 from owncloud/ignore_windows_reserved_charactersv1.7.0-rc1
Ignore reserved words on Windows
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;