]> git.sesse.net Git - vlc/commitdiff
lua: Define LUA_COMPAT_APIINTCASTS for Lua >= 5.3.0 compatibility.
authorVinson Lee <vlee@freedesktop.org>
Thu, 5 Feb 2015 22:48:53 +0000 (14:48 -0800)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 5 Feb 2015 23:51:25 +0000 (00:51 +0100)
In Lua 5.3.0, luaL_checkint was deprecated.

This patch fixes this build error with Lua 5.3.0.

lua/demux.c: In function ‘vlclua_demux_peek’:
lua/demux.c:55:5: error: implicit declaration of function ‘luaL_checkint’ [-Werror=implicit-function-declaration]
     int n = luaL_checkint( L, 1 );
     ^

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/lua/vlc.h

index efd94f164bd6340166d822d6724040d5244cbdad..85c7fc1112312f0d590d23ebf92d451d3749d43f 100644 (file)
@@ -38,6 +38,7 @@
 #include <vlc_stream.h>
 #include <vlc_demux.h>
 
+#define LUA_COMPAT_APIINTCASTS
 #define LUA_COMPAT_MODULE
 #include <lua.h>        /* Low level lua C API */
 #include <lauxlib.h>    /* Higher level C API */