FS-6294 FS-6308 NetBSD support should work test and report back please.

This commit is contained in:
Brian West committed 2014-03-19 14:34:07 -05:00
1 parent b8f1a1779f
commit c4c0f38aab
8 files changed
+28 -14

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@ ESL_DECLARE(const char *)cJSON_GetErrorPtr(void) {return ep;}
static int cJSON_strcasecmp(const char *s1,const char *s2)
{
if (!s1) return (s1==s2)?0:1;if (!s2) return 1;
for(; tolower(*s1) == tolower(*s2); ++s1, ++s2) if(*s1 == 0) return 0;
for(; tolower(*(const unsigned char *)s1) == tolower(*(const unsigned char *)s2); ++s1, ++s2) if(*s1 == 0) return 0;
return tolower(*(const unsigned char *)s1) - tolower(*(const unsigned char *)s2);
}