lua53_compat.patch 1018 B

12345678910111213141516171819202122232425262728293031
  1. commit 41caaa08cde60c4fec4bf2e5f9610e2a1b9e6a23
  2. Author: Vinson Lee <vlee@freedesktop.org>
  3. Date: Thu Feb 5 14:48:53 2015 -0800
  4. lua: Define LUA_COMPAT_APIINTCASTS for Lua >= 5.3.0 compatibility.
  5. In Lua 5.3.0, luaL_checkint was deprecated.
  6. This patch fixes this build error with Lua 5.3.0.
  7. lua/demux.c: In function ‘vlclua_demux_peek’:
  8. lua/demux.c:55:5: error: implicit declaration of function ‘luaL_checkint’ [-Werror=implicit-function-declaration]
  9. int n = luaL_checkint( L, 1 );
  10. ^
  11. Signed-off-by: Vinson Lee <vlee@freedesktop.org>
  12. Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
  13. diff --git a/modules/lua/vlc.h b/modules/lua/vlc.h
  14. index efd94f1..85c7fc1 100644
  15. --- a/modules/lua/vlc.h
  16. +++ b/modules/lua/vlc.h
  17. @@ -38,6 +38,7 @@
  18. #include <vlc_stream.h>
  19. #include <vlc_demux.h>
  20. +#define LUA_COMPAT_APIINTCASTS
  21. #define LUA_COMPAT_MODULE
  22. #include <lua.h> /* Low level lua C API */
  23. #include <lauxlib.h> /* Higher level C API */