From 79c8159f4179d47f4292da656b443ebcacd2d8bd Mon Sep 17 00:00:00 2001 From: bfredl Date: Fri, 1 Aug 2025 12:26:52 +0200 Subject: refactor(build): don't use the preprocessor when generating headers Using the preprocessor before generating prototypes provides some "niceties" but the places that rely on these are pretty few. Vastly simplifying the BUILD SYSTEM is a better trade-off. Unbalancing { } blocks due to the preprocessor is cringe anyway (think of the tree-sitter trees!), write these in a different way. Add some workarounds for plattform specific features. INCLUDE_GENERATED_DECLARATIONS flag is now technically redundant, but will be cleaned up in a follow-up PR as it is a big mess. --- src/nvim/lua/stdlib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nvim/lua/stdlib.h') diff --git a/src/nvim/lua/stdlib.h b/src/nvim/lua/stdlib.h index 26e96055ae..20cea44a04 100644 --- a/src/nvim/lua/stdlib.h +++ b/src/nvim/lua/stdlib.h @@ -1,6 +1,7 @@ #pragma once #include // IWYU pragma: keep +#include #ifdef INCLUDE_GENERATED_DECLARATIONS # include "lua/stdlib.h.generated.h" -- cgit