From 98088cfbeeb8fb7649a6882dbb32dd9bdcd87838 Mon Sep 17 00:00:00 2001 From: Thomas Moschny Date: Sun, 26 Apr 2015 23:25:59 +0200 Subject: [PATCH] Fix Lua 5.3 compatibility code. If Lua 5.3 is compiled with LUA_COMPAT_5_2 defined, the luaL_checkunsigned compatibility macro is already defined in lauxlib.h. Signed-off-by: Thomas Moschny --- src/lua-lxc/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lua-lxc/core.c b/src/lua-lxc/core.c index 630a3e4ea..34180a775 100644 --- a/src/lua-lxc/core.c +++ b/src/lua-lxc/core.c @@ -39,8 +39,10 @@ #endif #if LUA_VERSION_NUM >= 503 +#ifndef luaL_checkunsigned #define luaL_checkunsigned(L,n) ((lua_Unsigned)luaL_checkinteger(L,n)) #endif +#endif #ifdef NO_CHECK_UDATA #define checkudata(L,i,tname) lua_touserdata(L, i) -- 2.47.2