Ticket #50609: patch-lua-5.3.diff

File patch-lua-5.3.diff, 1.2 KB (added by Schamschula (Marius Schamschula), 9 years ago)
  • modules/lua/vlc.h

    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
     
    3838#include <vlc_stream.h>
    3939#include <vlc_demux.h>
    4040
     41#define LUA_COMPAT_APIINTCASTS
    4142#define LUA_COMPAT_MODULE
    4243#include <lua.h>        /* Low level lua C API */
    4344#include <lauxlib.h>    /* Higher level C API */