From: Thomas Moschny Date: Sun, 26 Apr 2015 21:25:59 +0000 (+0200) Subject: Fix Lua 5.3 compatibility code. X-Git-Tag: lxc-1.1.3~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57a64031b6c727d9ba43841c126ab5429714db15;p=thirdparty%2Flxc.git 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 --- 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)