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:
Liming Gao 2019-09-24 23:04:33 +08:00
parent 96301aadc1
commit a3596a040b
1 changed files with 3 additions and 1 deletions

View File

@ -799,7 +799,9 @@ typedef UINTN *BASE_LIST;
@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
#else
#define STATIC_ASSERT _Static_assert