Commit 41caaa08 authored by Vinson Lee's avatar Vinson Lee Committed by Jean-Baptiste Kempf

lua: Define LUA_COMPAT_APIINTCASTS for Lua >= 5.3.0 compatibility.

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: default avatarVinson Lee <vlee@freedesktop.org>
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1122886d
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment