From b4cd90c9e9a7898775d173df2267d1860dcbc699 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Tue, 26 Nov 2013 14:55:19 +0100 Subject: Fix a macro redefinition when compiling against Lua 5.2 with compatibility options enabled --- src/tools.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/tools.h b/src/tools.h index b48114c..e984ec2 100644 --- a/src/tools.h +++ b/src/tools.h @@ -35,7 +35,9 @@ void luaL_requiref (lua_State* L, const char* modname, lua_CFunction openf, int #ifndef lua_equal // already defined when compatibility is active in luaconf.h #define lua_equal( L, a, b) lua_compare( L, a, b, LUA_OPEQ) #endif // lua_equal +#ifndef lua_lessthan // already defined when compatibility is active in luaconf.h #define lua_lessthan( L, a, b) lua_compare( L, a, b, LUA_OPLT) +#endif // lua_lessthan #define luaG_registerlibfuncs( L, _funcs) luaL_setfuncs( L, _funcs, 0) #endif // LUA_VERSION_NUM == 502 -- cgit v1.2.3-55-g6feb