Skip to content

Commit

Permalink
app_lua: enclose ksr_luaL_openlib() between defines
Browse files Browse the repository at this point in the history
- uses functions not available in lua 5.1
  • Loading branch information
miconda committed Jan 23, 2022
1 parent b0e705f commit 8ea9d5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/app_lua/app_lua_api.c
Expand Up @@ -188,6 +188,7 @@ int sr_lua_reload_module(unsigned int reload)
return 0;
}

#if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 504
/**
*
*/
Expand Down Expand Up @@ -241,6 +242,7 @@ void ksr_luaL_openlib(lua_State *L, const char *libname,
{
ksr_luaL_openlib_mode(L, libname, lfuncs, nup, 1);
}
#endif

/**
*
Expand Down

0 comments on commit 8ea9d5a

Please sign in to comment.