diff options
| author | ruki <[email protected]> | 2026-03-31 00:48:06 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-03-31 00:48:06 +0800 |
| commit | 87e2b7c579d49bd20b69304b38c285989369967a (patch) | |
| tree | 5a9af91b4bf1c61d20ddbce72e0ec3d5e2ea8a12 /core/src/lua/xmake.sh | |
| parent | 2204370ec5b6bc00a8cb86d35370eee77209ebca (diff) | |
allow reassignment of for-loop control variables
Diffstat (limited to 'core/src/lua/xmake.sh')
| -rwxr-xr-x | core/src/lua/xmake.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/lua/xmake.sh b/core/src/lua/xmake.sh index 59eff5dd3..cfffd000c 100755 --- a/core/src/lua/xmake.sh +++ b/core/src/lua/xmake.sh @@ -44,6 +44,11 @@ target "lua" # add definitions add_defines "LUA_COMPAT_5_1" "LUA_COMPAT_5_2" "LUA_COMPAT_5_3" "{public}" + + # allow reassignment of for-loop control variables (lua 5.4 compatible) + add_undefines "RDKCONST" + add_defines "RDKCONST=0" + if is_plat "mingw"; then true # it has been defined in luaconf.h #add_defines "LUA_USE_WINDOWS" |
