diff options
author | Liming Gao <liming.gao@intel.com> | 2019-09-24 23:04:33 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2019-09-25 13:41:00 +0800 |
commit | a3596a040bbd363b75a4d79da359374c0f409bc5 (patch) | |
tree | 44e7f68eb9a9b6cc1381d1ad34314440cb74d120 /MdePkg/Include/Base.h | |
parent | 96301aadc199e3dcd4dec39a8e6257862d1f92c5 (diff) | |
download | edk2-a3596a040bbd363b75a4d79da359374c0f409bc5.zip edk2-a3596a040bbd363b75a4d79da359374c0f409bc5.tar.gz edk2-a3596a040bbd363b75a4d79da359374c0f409bc5.tar.bz2 |
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>
Diffstat (limited to 'MdePkg/Include/Base.h')
-rw-r--r-- | MdePkg/Include/Base.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h index ed85b98..d94b8a5 100644 --- a/MdePkg/Include/Base.h +++ b/MdePkg/Include/Base.h @@ -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
|