diff options
-rw-r--r-- | lua_cjson.c | 6 |
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 | |||
78 | static const char * const *json_empty_array; | 84 | static const char * const *json_empty_array; |
79 | 85 | ||
80 | typedef enum { | 86 | typedef enum { |