mirror of https://github.com/acidanthera/audk.git
MdePkg Base.h: Define STATIC_ASSERT macro as empty for EBC arch
EBC compiler doesn't support C11 static_assert macro. So, define STATIC_ASSERT as empty to pass EBC arch build. STATIC_ASSERT macro is introduced @204ae9da230ecbf0910c21acac7aa5d5e8cbb8d0 Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org> Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
This commit is contained in:
parent
96301aadc1
commit
a3596a040b
|
@ -799,7 +799,9 @@ typedef UINTN *BASE_LIST;
|
||||||
@param Message Raised compiler diagnostic message when expression is false.
|
@param Message Raised compiler diagnostic message when expression is false.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
#ifdef _MSC_EXTENSIONS
|
#ifdef MDE_CPU_EBC
|
||||||
|
#define STATIC_ASSERT(Expression, Message)
|
||||||
|
#elif _MSC_EXTENSIONS
|
||||||
#define STATIC_ASSERT static_assert
|
#define STATIC_ASSERT static_assert
|
||||||
#else
|
#else
|
||||||
#define STATIC_ASSERT _Static_assert
|
#define STATIC_ASSERT _Static_assert
|
||||||
|
|
Loading…
Reference in New Issue