diff options
author | Mike Anchor <git@mjpa.co.uk> | 2016-02-07 00:30:32 +0300 |
---|---|---|
committer | Mike Anchor <git@mjpa.co.uk> | 2016-02-07 00:30:32 +0300 |
commit | d5584f037e4c34ad244e2cfaf2a7508d32be75bd (patch) | |
tree | 37b78bdca4cced47b9e370487a2e5484a2e0c4e6 | |
parent | 7ce5b586d4ff5dcb30c2eac7ac53a43c59fe8962 (diff) | |
parent | 40b75f29339315865873fb9d29138ac4730ae67f (diff) |
Merge pull request #30 from fokede/master
MinGW compatibility fix
-rw-r--r-- | src/JSONValue.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; } } |