aboutsummaryrefslogtreecommitdiff
path: root/src/lfs.c
diff options
context:
space:
mode:
authorAlexey Melnichuk <mimir@newmail.ru>2014-11-12 14:44:53 +0400
committerAlexey Melnichuk <mimir@newmail.ru>2014-11-12 14:51:55 +0400
commit8f2949974a6329296cb643bd9507983e8b589d9a (patch)
treee4c857b9713d9b604785385fabeb031d66949a65 /src/lfs.c
parent9db234cc10a6db0247a9347dae8016cf7b527f38 (diff)
downloadluafilesystem-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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lfs.c b/src/lfs.c
index ec3544b..0b0b786 100644
--- a/src/lfs.c
+++ b/src/lfs.c
@@ -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