Browse code

app_lua: enclose ksr_luaL_openlib() between defines

- uses functions not available in lua 5.1

Daniel-Constantin Mierla authored on 23/01/2022 18:48:26
Showing 1 changed files
... ...
@@ -188,6 +188,7 @@ int sr_lua_reload_module(unsigned int reload)
188 188
 	return 0;
189 189
 }
190 190
 
191
+#if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 504
191 192
 /**
192 193
  *
193 194
  */
... ...
@@ -241,6 +242,7 @@ void ksr_luaL_openlib(lua_State *L, const char *libname,
241 242
 {
242 243
 	ksr_luaL_openlib_mode(L, libname, lfuncs, nup, 1);
243 244
 }
245
+#endif
244 246
 
245 247
 /**
246 248
  *