]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-lua: dlua-compat - Undefine lua_isinteger
authorAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 May 2021 16:06:27 +0000 (19:06 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 May 2021 16:06:27 +0000 (19:06 +0300)
It's being defined in compat to return boolean, so undefine it
here to make sure it compiles. Broken in b59e89ebd97fa52de25b8e976a7dfe61f0d8a639

src/lib-lua/dlua-compat.c

index b0635741e6a665de6f5517c466e53653ee6e4e33..19b43df430371c0adf2a412ce4b56c9b27ddea49 100644 (file)
@@ -41,6 +41,7 @@ void luaL_setmetatable(lua_State *L, const char *tname)
  * Lua 5.3 added lua_isinteger() which tells us whether or not the input is
  * an integer.  In Lua 5.1 and 5.2, we have to emulate it.
  */
+#undef lua_isinteger
 int lua_isinteger(lua_State *L, int idx)
 {
        int isnum;