summaryrefslogtreecommitdiffstats
path: root/MdePkg
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2025-01-17 12:58:42 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-01-17 16:39:29 +0000
commitea2f6c68ee92677787604cf0a9f412edbc2e599f (patch)
tree2e1da829cd67b0b4b2bb7c88469d898bc6fd4d94 /MdePkg
parentf0c87b9ef421954ec0e7942d9e8d7d4d14b208b3 (diff)
downloadedk2-ea2f6c68ee92677787604cf0a9f412edbc2e599f.tar.gz
MdePkg/Base: Don't error out on missing compiler CPP macros
STATIC_ASSERT is #define'd to a compiler specific value, based on built-in macros exposed by those compilers. If none of those are found, an #error is raised. This breaks the DTCPP build rule, which relies on the C preprocessor for header file inclusion and value substitution, but doesn't define any of the compiler macros we look for. So drop the error case. If STATIC_ASSERT is used without a definition, an error will be raised anyway. Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Include/Base.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h
index a6fb59205e..ee5940a2d1 100644
--- a/MdePkg/Include/Base.h
+++ b/MdePkg/Include/Base.h
@@ -806,8 +806,6 @@ typedef UINTN *BASE_LIST;
#define STATIC_ASSERT _Static_assert
#elif defined (_MSC_EXTENSIONS)
#define STATIC_ASSERT static_assert
-#else
- #error STATIC_ASSERT() definiton not available
#endif
//