فهرست منبع

app_lua: enclose ksr_luaL_openlib() between defines

- uses functions not available in lua 5.1
Daniel-Constantin Mierla 3 سال پیش
والد
کامیت
8ea9d5a8b9
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      src/modules/app_lua/app_lua_api.c

+ 2 - 0
src/modules/app_lua/app_lua_api.c

@@ -188,6 +188,7 @@ int sr_lua_reload_module(unsigned int reload)
 	return 0;
 }
 
+#if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 504
 /**
  *
  */
@@ -241,6 +242,7 @@ void ksr_luaL_openlib(lua_State *L, const char *libname,
 {
 	ksr_luaL_openlib_mode(L, libname, lfuncs, nup, 1);
 }
+#endif
 
 /**
  *