diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2013-11-26 14:55:19 +0100 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2013-11-26 14:55:19 +0100 |
commit | b4cd90c9e9a7898775d173df2267d1860dcbc699 (patch) | |
tree | 6099e44c97b899fb14fec3a4e7883d4c77b4adee | |
parent | 27dd50867f891739579bc1cc39874bfb6537fd11 (diff) | |
download | lanes-b4cd90c9e9a7898775d173df2267d1860dcbc699.tar.gz lanes-b4cd90c9e9a7898775d173df2267d1860dcbc699.tar.bz2 lanes-b4cd90c9e9a7898775d173df2267d1860dcbc699.zip |
Fix a macro redefinition when compiling against Lua 5.2 with compatibility options enabled
-rw-r--r-- | src/tools.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 | |||
35 | #ifndef lua_equal // already defined when compatibility is active in luaconf.h | 35 | #ifndef lua_equal // already defined when compatibility is active in luaconf.h |
36 | #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 | 37 | #endif // lua_equal |
38 | #ifndef lua_lessthan // already defined when compatibility is active in luaconf.h | ||
38 | #define lua_lessthan( L, a, b) lua_compare( L, a, b, LUA_OPLT) | 39 | #define lua_lessthan( L, a, b) lua_compare( L, a, b, LUA_OPLT) |
40 | #endif // lua_lessthan | ||
39 | #define luaG_registerlibfuncs( L, _funcs) luaL_setfuncs( L, _funcs, 0) | 41 | #define luaG_registerlibfuncs( L, _funcs) luaL_setfuncs( L, _funcs, 0) |
40 | #endif // LUA_VERSION_NUM == 502 | 42 | #endif // LUA_VERSION_NUM == 502 |
41 | 43 | ||