From 41caaa08cde60c4fec4bf2e5f9610e2a1b9e6a23 Mon Sep 17 00:00:00 2001
From: Vinson Lee <vlee@freedesktop.org>
Date: Thu, 5 Feb 2015 14:48:53 -0800
Subject: [PATCH] lua: Define LUA_COMPAT_APIINTCASTS for Lua >= 5.3.0
compatibility.
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
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 | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/lua/vlc.h b/modules/lua/vlc.h
index efd94f1..85c7fc1 100644
|
|
|
38 | 38 | #include <vlc_stream.h> |
39 | 39 | #include <vlc_demux.h> |
40 | 40 | |
| 41 | #define LUA_COMPAT_APIINTCASTS |
41 | 42 | #define LUA_COMPAT_MODULE |
42 | 43 | #include <lua.h> /* Low level lua C API */ |
43 | 44 | #include <lauxlib.h> /* Higher level C API */ |