diff options
author | Alexey Melnichuk <mimir@newmail.ru> | 2014-11-12 14:44:53 +0400 |
---|---|---|
committer | Alexey Melnichuk <mimir@newmail.ru> | 2014-11-12 14:51:55 +0400 |
commit | 8f2949974a6329296cb643bd9507983e8b589d9a (patch) | |
tree | e4c857b9713d9b604785385fabeb031d66949a65 /src/lfs.c | |
parent | 9db234cc10a6db0247a9347dae8016cf7b527f38 (diff) | |
download | luafilesystem-8f2949974a6329296cb643bd9507983e8b589d9a.tar.gz luafilesystem-8f2949974a6329296cb643bd9507983e8b589d9a.tar.bz2 luafilesystem-8f2949974a6329296cb643bd9507983e8b589d9a.zip |
Fix. Support Lua 5.3.beta
Diffstat (limited to 'src/lfs.c')
-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 |