From d76192cce12658d08122204df75c3c29b59895a5 Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Fri, 24 Oct 2014 13:18:57 -0400 Subject: Ignore reserved words on Windows Fixes #2385 and #2386 --- csync/src/std/c_string.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'csync/src/std/c_string.c') 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; -- cgit v1.2.3