aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Chen <momo1x3@gmail.com>2016-11-05 11:57:41 +0800
committerYichun Zhang (agentzh) <agentzh@gmail.com>2016-11-06 21:47:47 -0800
commitf6854d4d0d970f5c7d0cfa8a1c4ddad528d6d704 (patch)
tree7e9e9f22dbb1be422c25bb401c1e6e48e9d77a91
parentf8c3c82059b67fb9726893207c67893ed4f1d4a6 (diff)
downloadlua-cjson-f6854d4d0d970f5c7d0cfa8a1c4ddad528d6d704.tar.gz
lua-cjson-f6854d4d0d970f5c7d0cfa8a1c4ddad528d6d704.tar.bz2
lua-cjson-f6854d4d0d970f5c7d0cfa8a1c4ddad528d6d704.zip
bugfix: fixed compilation errors from the Microsoft C compiler.
Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
-rw-r--r--lua_cjson.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lua_cjson.c b/lua_cjson.c
index 5f4faf2..3a77644 100644
--- a/lua_cjson.c
+++ b/lua_cjson.c
@@ -75,6 +75,12 @@
75#define DEFAULT_DECODE_INVALID_NUMBERS 0 75#define DEFAULT_DECODE_INVALID_NUMBERS 0
76#endif 76#endif
77 77
78#ifdef _MSC_VER
79/* Microsoft C compiler lacks strncasecmp and strcasecmp. */
80#define strncasecmp _strnicmp
81#define strcasecmp _stricmp
82#endif
83
78static const char * const *json_empty_array; 84static const char * const *json_empty_array;
79 85
80typedef enum { 86typedef enum {