From 40b75f29339315865873fb9d29138ac4730ae67f Mon Sep 17 00:00:00 2001 From: fokede Date: Sun, 25 Oct 2015 22:25:43 +0200 Subject: MinGW compatibility fix --- src/JSONValue.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/JSONValue.cpp b/src/JSONValue.cpp index cbf8648..c25bc78 100644 --- a/src/JSONValue.cpp +++ b/src/JSONValue.cpp @@ -33,6 +33,10 @@ #include "JSONValue.h" +#ifdef __MINGW32__ +#define wcsncasecmp wcsnicmp +#endif + // Macros to free an array/object #define FREE_ARRAY(x) { JSONArray::iterator iter; for (iter = x.begin(); iter != x.end(); iter++) { delete *iter; } } #define FREE_OBJECT(x) { JSONObject::iterator iter; for (iter = x.begin(); iter != x.end(); iter++) { delete (*iter).second; } } -- cgit v1.2.3