mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
MdePkg/Base.h: Only use C++ static_assert when supported
To support GoogleTest, 933b4c3 added support for C++ static_assert. However, this is not a mandatory or universally supported C++ feature. Guard its usage by the __cpp_static_assert support flag. Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
This commit is contained in:
parent
ba02e8cc6c
commit
572bcb051d
@ -802,7 +802,7 @@ typedef UINTN *BASE_LIST;
|
||||
**/
|
||||
#ifdef MDE_CPU_EBC
|
||||
#define STATIC_ASSERT(Expression, Message)
|
||||
#elif defined (_MSC_EXTENSIONS) || defined (__cplusplus)
|
||||
#elif defined (_MSC_EXTENSIONS) || defined (__cpp_static_assert)
|
||||
#define STATIC_ASSERT static_assert
|
||||
#else
|
||||
#define STATIC_ASSERT _Static_assert
|
||||
|
Loading…
x
Reference in New Issue
Block a user