aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lfs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lfs.c b/src/lfs.c
index 5461f82..cea87ef 100644
--- a/src/lfs.c
+++ b/src/lfs.c
@@ -69,6 +69,14 @@
69#define LFS_VERSION "1.6.2" 69#define LFS_VERSION "1.6.2"
70#define LFS_LIBNAME "lfs" 70#define LFS_LIBNAME "lfs"
71 71
72#if LUA_VERSION_NUM >= 503 /* Lua 5.3 */
73
74#ifndef luaL_optlong
75#define luaL_optlong luaL_optinteger
76#endif
77
78#endif
79
72#if LUA_VERSION_NUM < 502 80#if LUA_VERSION_NUM < 502
73# define luaL_newlib(L,l) (lua_newtable(L), luaL_register(L,NULL,l)) 81# define luaL_newlib(L,l) (lua_newtable(L), luaL_register(L,NULL,l))
74#endif 82#endif