From c6c81726af00d22adfc8e583470c0c47c09733f8 Mon Sep 17 00:00:00 2001 From: phy0292 Date: Sat, 15 Jan 2022 17:16:59 +0800 Subject: [PATCH 1/2] Update lua.h The definition of LUA_VERSION_NUM needs to be judged in LuaPlusConfig.h, but LUA_VERSION_NUM is defined after LuaPlusConfig.h --- Src/LuaPlus/lua53-luaplus/src/lua.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Src/LuaPlus/lua53-luaplus/src/lua.h b/Src/LuaPlus/lua53-luaplus/src/lua.h index 9f87f48f0..b70928f05 100644 --- a/Src/LuaPlus/lua53-luaplus/src/lua.h +++ b/Src/LuaPlus/lua53-luaplus/src/lua.h @@ -13,8 +13,6 @@ #include -#include "luaconf.h" - #define LUA_VERSION_MAJOR "5" #define LUA_VERSION_MINOR "3" @@ -33,6 +31,7 @@ /* option for multiple returns in 'lua_pcall' and 'lua_call' */ #define LUA_MULTRET (-1) +#include "luaconf.h" /* ** Pseudo-indices From 0769b818f8006ebfa7088a84e72f054464330b62 Mon Sep 17 00:00:00 2001 From: phy0292 Date: Sat, 15 Jan 2022 17:20:14 +0800 Subject: [PATCH 2/2] Update lua.h The definition of LUA_VERSION_NUM needs to be judged in LuaPlusConfig.h, but LUA_VERSION_NUM is defined after LuaPlusConfig.h --- Src/LuaPlus/lua51-luaplus/src/lua.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/LuaPlus/lua51-luaplus/src/lua.h b/Src/LuaPlus/lua51-luaplus/src/lua.h index e7c60d249..a2d40ac2f 100644 --- a/Src/LuaPlus/lua51-luaplus/src/lua.h +++ b/Src/LuaPlus/lua51-luaplus/src/lua.h @@ -13,7 +13,6 @@ #include -#include "luaconf.h" #define LUA_VERSION "Lua 5.1" @@ -29,6 +28,7 @@ /* option for multiple returns in `lua_pcall' and `lua_call' */ #define LUA_MULTRET (-1) +#include "luaconf.h" /* ** pseudo-indices