From c2a3ec54434d9f428d8f775ecbcc85c8ab88fae8 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 11 Nov 2024 13:27:06 +0100 Subject: system: Implement IWYU suggestions --- src/buildtool/system/system.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/buildtool/system/system.cpp') diff --git a/src/buildtool/system/system.cpp b/src/buildtool/system/system.cpp index 228c7806..ff057d85 100644 --- a/src/buildtool/system/system.cpp +++ b/src/buildtool/system/system.cpp @@ -14,15 +14,17 @@ #include "src/buildtool/system/system.hpp" -#include -#include -#include - +#ifdef VALGRIND_BUILD #ifdef __unix__ #include #else #error "Non-unix is not supported yet" -#endif +#endif // __unix__ +#include +#include +#else +#include +#endif // VALGRIND_BUILD void System::ExitWithoutCleanup(int exit_code) { #ifdef VALGRIND_BUILD @@ -37,5 +39,5 @@ void System::ExitWithoutCleanup(int exit_code) { ::execvpe(args[0], args.data(), nullptr); #else std::_Exit(exit_code); -#endif +#endif // VALGRIND_BUILD } -- cgit v1.2.3