From 2936e9b23c3b4fb2b9d816505b39131ef152bbc5 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 21 Jan 2023 20:31:25 +0200 Subject: [PATCH] Undefine the API macro at the end of a setup header Otherwise it may interfere with other setup headers. --- tools/setupgen/setupgen.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/setupgen/setupgen.cpp b/tools/setupgen/setupgen.cpp index 204045f..8448f55 100644 --- a/tools/setupgen/setupgen.cpp +++ b/tools/setupgen/setupgen.cpp @@ -165,6 +165,7 @@ void SetupGen::generate_header(const Module &mod, IO::Base &out) const if(!mod.name_space.empty()) IO::print(out, "\n} // namespace %s\n", mod.name_space); + IO::print(out, "\n#undef API\n"); IO::print(out, "\n#endif\n"); } -- 2.45.2