aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {