diff options
author | Daniel Molkentin <danimo@owncloud.com> | 2014-10-24 21:18:57 +0400 |
---|---|---|
committer | Daniel Molkentin <danimo@owncloud.com> | 2014-10-24 21:18:57 +0400 |
commit | d76192cce12658d08122204df75c3c29b59895a5 (patch) | |
tree | 3785471698cf3183b11f9c6d1dc6c15740f445d0 /csync/src/std/c_string.c | |
parent | 3c7ff97ed40d0550cd0091941d7dfc37b824e5d9 (diff) |
Ignore reserved words on Windows
Fixes #2385 and #2386
Diffstat (limited to 'csync/src/std/c_string.c')
-rw-r--r-- | csync/src/std/c_string.c | 8 |
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; |