From a44dd59a0c97bbb6731150c1a48302f09a2942d0 Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Sat, 24 Aug 2024 09:36:47 +0200 Subject: [PATCH] Add some missing headers When running clang-format which reorders headers, those are the ones that came up as missing. Signed-off-by: Ralph Sennhauser --- source/lib/alignment.h | 2 ++ source/lib/code_annotation.h | 2 ++ source/lib/status.h | 4 ++++ source/lib/sysdep/os/unix/unix_executable_pathname.h | 2 ++ 4 files changed, 10 insertions(+) diff --git a/source/lib/alignment.h b/source/lib/alignment.h index 07224d6a9c..cbb9ec31b6 100644 --- a/source/lib/alignment.h +++ b/source/lib/alignment.h @@ -26,6 +26,8 @@ #include "lib/sysdep/compiler.h" // MSC_VERSION #include "lib/sysdep/arch.h" // ARCH_AMD64 +#include + template inline bool IsAligned(T t, uintptr_t multiple) { diff --git a/source/lib/code_annotation.h b/source/lib/code_annotation.h index d5e38eebb4..a5bb29ca91 100644 --- a/source/lib/code_annotation.h +++ b/source/lib/code_annotation.h @@ -30,6 +30,8 @@ #include "lib/sysdep/compiler.h" #include "lib/sysdep/arch.h" // ARCH_AMD64 +#include + /** * mark a function parameter as unused and avoid * the corresponding compiler warning. diff --git a/source/lib/status.h b/source/lib/status.h index 4597d84593..399d33820b 100644 --- a/source/lib/status.h +++ b/source/lib/status.h @@ -161,6 +161,10 @@ To summarize: +/-1SHHCC (S=subsystem, HH=header, CC=code number) #ifndef INCLUDED_STATUS #define INCLUDED_STATUS +#include "lib/types.h" + +#include + // an integral type allows defining error codes in separate headers, // but is not as type-safe as an enum. use Lint's 'strong type' checking // to catch errors such as Status Func() { return 1; }. diff --git a/source/lib/sysdep/os/unix/unix_executable_pathname.h b/source/lib/sysdep/os/unix/unix_executable_pathname.h index 1a74c0a5c5..78fbeb6dd6 100644 --- a/source/lib/sysdep/os/unix/unix_executable_pathname.h +++ b/source/lib/sysdep/os/unix/unix_executable_pathname.h @@ -23,6 +23,8 @@ #ifndef INCLUDED_UNIX_EXECUTABLE_PATHNAME #define INCLUDED_UNIX_EXECUTABLE_PATHNAME +#include "lib/os_path.h" + OsPath unix_ExecutablePathname(); #endif // INCLUDED_UNIX_EXECUTABLE_PATHNAME