diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lfs.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -65,6 +65,14 @@ | |||
65 | #define LFS_VERSION "1.6.2" | 65 | #define LFS_VERSION "1.6.2" |
66 | #define LFS_LIBNAME "lfs" | 66 | #define LFS_LIBNAME "lfs" |
67 | 67 | ||
68 | #if LUA_VERSION_NUM >= 503 /* Lua 5.3 */ | ||
69 | |||
70 | #ifndef luaL_optlong | ||
71 | #define luaL_optlong luaL_optinteger | ||
72 | #endif | ||
73 | |||
74 | #endif | ||
75 | |||
68 | #if LUA_VERSION_NUM < 502 | 76 | #if LUA_VERSION_NUM < 502 |
69 | # define luaL_newlib(L,l) (lua_newtable(L), luaL_register(L,NULL,l)) | 77 | # define luaL_newlib(L,l) (lua_newtable(L), luaL_register(L,NULL,l)) |
70 | #endif | 78 | #endif |