diff options
| author | ruki <[email protected]> | 2020-07-17 22:33:46 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-07-17 22:33:46 +0800 |
| commit | a586eb19b8e24e97cb41918f3e692f6fc7b35368 (patch) | |
| tree | f53ed333b73ac226c2671319be3f2ab48ca14019 /core/src | |
| parent | 5c4e36e63a63742fc81910cce39a2fc54b36db05 (diff) | |
fix link errors for msvc
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/lua-cjson/xmake.lua | 3 | ||||
| -rw-r--r-- | core/src/xmake/engine.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/core/src/lua-cjson/xmake.lua b/core/src/lua-cjson/xmake.lua index 9c93fb562..76caf9fc7 100644 --- a/core/src/lua-cjson/xmake.lua +++ b/core/src/lua-cjson/xmake.lua @@ -2,6 +2,9 @@ target("lua-cjson") set_kind("static") set_warnings("all") add_deps("luajit") + if is_plat("windows") then + set_languages("c89") + end add_files("lua-cjson/*.c|fpconv.c") -- Use internal strtod() / g_fmt() code for performance and disable multi-thread add_defines("NDEBUG", "USE_INTERNAL_FPCONV") diff --git a/core/src/xmake/engine.c b/core/src/xmake/engine.c index 337627047..fb6205ac5 100644 --- a/core/src/xmake/engine.c +++ b/core/src/xmake/engine.c @@ -225,7 +225,9 @@ tb_int_t xm_curses_register(lua_State* lua); #endif // open cjson +__tb_extern_c_enter__ tb_int_t luaopen_cjson(lua_State *l); +__tb_extern_c_leave__ /* ////////////////////////////////////////////////////////////////////////////////////// * globals |
