diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lfs.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |