Fix. Support Lua 5.3.beta

This commit is contained in:
Alexey Melnichuk
2014-11-12 14:44:53 +04:00
parent 9db234cc10
commit 8f2949974a
4 changed files with 47 additions and 2 deletions

View File

@@ -65,6 +65,14 @@
#define LFS_VERSION "1.6.2"
#define LFS_LIBNAME "lfs"
#if LUA_VERSION_NUM >= 503 /* Lua 5.3 */
#ifndef luaL_optlong
#define luaL_optlong luaL_optinteger
#endif
#endif
#if LUA_VERSION_NUM < 502
# define luaL_newlib(L,l) (lua_newtable(L), luaL_register(L,NULL,l))
#endif