]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg Base.h: Define STATIC_ASSERT macro as empty for EBC arch
authorLiming Gao <liming.gao@intel.com>
Tue, 24 Sep 2019 15:04:33 +0000 (23:04 +0800)
committerLiming Gao <liming.gao@intel.com>
Wed, 25 Sep 2019 05:41:00 +0000 (13:41 +0800)
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>
MdePkg/Include/Base.h

index ed85b98318b82b0fdfaed10a8676dad8e5e770ea..d94b8a5f93b15f60c9544d7705369d740853aaf9 100644 (file)
@@ -799,7 +799,9 @@ typedef UINTN  *BASE_LIST;
   @param  Message     Raised compiler diagnostic message when expression is false.\r
 \r
 **/\r
-#ifdef _MSC_EXTENSIONS\r
+#ifdef MDE_CPU_EBC\r
+  #define STATIC_ASSERT(Expression, Message)\r
+#elif _MSC_EXTENSIONS\r
   #define STATIC_ASSERT static_assert\r
 #else\r
   #define STATIC_ASSERT _Static_assert\r