From 3f330273f3b29a609fa6f8cedee4e38846fa39e4 Mon Sep 17 00:00:00 2001 From: Philip Gladstone Date: Sun, 24 Oct 2021 19:15:29 +0000 Subject: [PATCH] See if this fixes the cross compiles --- components/lua/lua-5.3/luaconf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/lua/lua-5.3/luaconf.h b/components/lua/lua-5.3/luaconf.h index 8081cf7d..2fb0ab94 100644 --- a/components/lua/lua-5.3/luaconf.h +++ b/components/lua/lua-5.3/luaconf.h @@ -74,10 +74,12 @@ # define LUA_FLOAT_TYPE LUA_FLOAT_FLOAT #endif +#ifdef LUA_USE_ESP #define L_RANDMAX 2147483647 extern uint32_t esp_random(void); #define l_rand() (esp_random() & L_RANDMAX) #define l_srand(x) +#endif /* ** Configuration for Paths.