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

Francois Cartegnie fcvlcdev at free.fr
Tue Mar 2 12:07:42 UTC 2021


Le 02/03/2021 à 12:41, Alexandre Janniaux a écrit :
> Hi
> 
> Maybe it's better to directly backport 0e0b070c26d197e848f1548fca455bf97db471a3
> since luaL_checkinteger was already available in 5.1? Otherwise

We do not have min version requirement.

> your patch should have the same effect as enabling -DLUA_COMPAT_5_2 or
> -DLUA_COMPAT_APIINTCASTS
> 
>      @@ LUA_COMPAT_APIINTCASTS controls the presence of macros for
>      ** manipulating other integer types (lua_pushunsigned, lua_tounsigned,
>      ** luaL_checkint, luaL_checklong, etc.)
>      */
>      #define LUA_COMPAT_APIINTCASTS

Or maybe add defines in compat header

-- 
Francois Cartegnie
VideoLAN - VLC Developer


More information about the vlc-devel mailing list