From 8f2949974a6329296cb643bd9507983e8b589d9a Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Wed, 12 Nov 2014 14:44:53 +0400 Subject: Fix. Support Lua 5.3.beta --- src/lfs.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/lfs.c') 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 @@ #define LFS_VERSION "1.6.2" #define LFS_LIBNAME "lfs" +#if LUA_VERSION_NUM >= 503 /* Lua 5.3 */ + +#ifndef luaL_optlong +#define luaL_optlong luaL_optinteger +#endif + +#endif + #if LUA_VERSION_NUM < 502 # define luaL_newlib(L,l) (lua_newtable(L), luaL_register(L,NULL,l)) #endif -- cgit v1.2.3-55-g6feb