summaryrefslogtreecommitdiff
path: root/core/src/lua-cjson/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-07-17 22:35:05 +0800
committerruki <[email protected]>2020-07-17 22:35:05 +0800
commita9f65fda1e6fdf15d8e695308e39859141373503 (patch)
treea8236ddaacefc8b56eb1a2e9a49da5fe6f13e7b7 /core/src/lua-cjson/xmake.lua
parenta586eb19b8e24e97cb41918f3e692f6fc7b35368 (diff)
fix strncasecmp for cjson
Diffstat (limited to 'core/src/lua-cjson/xmake.lua')
-rw-r--r--core/src/lua-cjson/xmake.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/lua-cjson/xmake.lua b/core/src/lua-cjson/xmake.lua
index 76caf9fc7..1d7229aa2 100644
--- a/core/src/lua-cjson/xmake.lua
+++ b/core/src/lua-cjson/xmake.lua
@@ -11,5 +11,6 @@ target("lua-cjson")
if is_plat("windows") then
-- Windows sprintf()/strtod() handle NaN/inf differently. Not supported.
add_defines("DISABLE_INVALID_NUMBERS")
+ add_defines("strncasecmp=_strnicmp")
end