From 9ed41d0ba846861f13ac5aa3fd35fa2ef82bd8c9 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 31 Mar 2026 00:51:31 +0800 Subject: revert rdkconst --- core/src/lua/xmake.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/src/lua/xmake.lua') diff --git a/core/src/lua/xmake.lua b/core/src/lua/xmake.lua index 39d7b0baa..6a3fa78a6 100644 --- a/core/src/lua/xmake.lua +++ b/core/src/lua/xmake.lua @@ -22,6 +22,10 @@ target("lua") -- add definitions add_defines("LUA_COMPAT_5_1", "LUA_COMPAT_5_2", "LUA_COMPAT_5_3", {public = true}) + -- allow reassignment of for-loop control variables (lua 5.4 compatible) + add_undefines("RDKCONST") + add_defines("RDKCONST=0") + if is_plat("windows", "mingw") then -- it has been defined in luaconf.h --add_defines("LUA_USE_WINDOWS") -- cgit v1.3.1