aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenoit Germain <bnt.germain@gmail.com>2013-11-26 14:54:11 +0100
committerBenoit Germain <bnt.germain@gmail.com>2013-11-26 14:54:11 +0100
commit27dd50867f891739579bc1cc39874bfb6537fd11 (patch)
tree5242258adc7be50cc289f16a0229e143fcd1307e /src
parent8fc1588ac0cea605ccec29efd7acac0e0aa50945 (diff)
downloadlanes-27dd50867f891739579bc1cc39874bfb6537fd11.tar.gz
lanes-27dd50867f891739579bc1cc39874bfb6537fd11.tar.bz2
lanes-27dd50867f891739579bc1cc39874bfb6537fd11.zip
Fix a macro redefinition when compiling against Lua 5.2 with compatibility options enabled
Diffstat (limited to 'src')
-rw-r--r--src/tools.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools.h b/src/tools.h
index f775c70..b48114c 100644
--- a/src/tools.h
+++ b/src/tools.h
@@ -32,7 +32,9 @@ void luaL_requiref (lua_State* L, const char* modname, lua_CFunction openf, int
32 32
33// wrap Lua 5.2 calls under Lua 5.1 API when it is simpler that way 33// wrap Lua 5.2 calls under Lua 5.1 API when it is simpler that way
34#if LUA_VERSION_NUM == 502 34#if LUA_VERSION_NUM == 502
35#ifndef lua_equal // already defined when compatibility is active in luaconf.h
35#define lua_equal( L, a, b) lua_compare( L, a, b, LUA_OPEQ) 36#define lua_equal( L, a, b) lua_compare( L, a, b, LUA_OPEQ)
37#endif // lua_equal
36#define lua_lessthan( L, a, b) lua_compare( L, a, b, LUA_OPLT) 38#define lua_lessthan( L, a, b) lua_compare( L, a, b, LUA_OPLT)
37#define luaG_registerlibfuncs( L, _funcs) luaL_setfuncs( L, _funcs, 0) 39#define luaG_registerlibfuncs( L, _funcs) luaL_setfuncs( L, _funcs, 0)
38#endif // LUA_VERSION_NUM == 502 40#endif // LUA_VERSION_NUM == 502