diff options
-rw-r--r-- | lua_cjson.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lua_cjson.c b/lua_cjson.c index 89cba6d..cd17d7a 100644 --- a/lua_cjson.c +++ b/lua_cjson.c | |||
@@ -1342,8 +1342,9 @@ static int json_decode(lua_State *l) | |||
1342 | 1342 | ||
1343 | /* ===== INITIALISATION ===== */ | 1343 | /* ===== INITIALISATION ===== */ |
1344 | 1344 | ||
1345 | #if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502 | 1345 | #if !defined(luaL_newlibtable) \ |
1346 | /* Compatibility for Lua 5.1. | 1346 | && (!defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 502) |
1347 | /* Compatibility for Lua 5.1 and older LuaJIT. | ||
1347 | * | 1348 | * |
1348 | * luaL_setfuncs() is used to create a module table where the functions have | 1349 | * luaL_setfuncs() is used to create a module table where the functions have |
1349 | * json_config_t as their first upvalue. Code borrowed from Lua 5.2 source. */ | 1350 | * json_config_t as their first upvalue. Code borrowed from Lua 5.2 source. */ |