From: Mikko Rasa Date: Sat, 21 Jan 2023 18:31:25 +0000 (+0200) Subject: Undefine the API macro at the end of a setup header X-Git-Url: https://git.tdb.fi/?a=commitdiff_plain;h=2936e9b23c3b4fb2b9d816505b39131ef152bbc5;p=libs%2Fgame.git Undefine the API macro at the end of a setup header Otherwise it may interfere with other setup headers. --- 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"); }