[vlc-devel] [PATCH] VLC 3.0 lua: fix build with lua 5.4

Francois Cartegnie fcvlcdev at free.fr
Tue Mar 2 11:07:51 UTC 2021


---
 modules/lua/vlc.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/lua/vlc.h b/modules/lua/vlc.h
index 71f381d334..96fdd2bfa9 100644
--- a/modules/lua/vlc.h
+++ b/modules/lua/vlc.h
@@ -66,6 +66,10 @@
 # define luaL_register_namespace(L, n, l) luaL_register( L, n, (l) );
 #endif
 
+#if LUA_VERSION_NUM >= 504
+# define luaL_checkint(L,narg)     ((int)luaL_checkinteger(L, (narg)))
+# define luaL_optlong(L,narg,d)    ((long)luaL_optinteger(L, (narg), (d)))
+#endif
 
 /*****************************************************************************
  * Module entry points
-- 
2.29.2



More information about the vlc-devel mailing list