From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: liming.gao@intel.com) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by groups.io with SMTP; Tue, 24 Sep 2019 08:05:32 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Sep 2019 08:05:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,544,1559545200"; d="scan'208";a="189389198" Received: from lgao4-mobl1.ccr.corp.intel.com ([10.249.171.112]) by fmsmga007.fm.intel.com with ESMTP; 24 Sep 2019 08:05:23 -0700 From: "Liming Gao" To: devel@edk2.groups.io Cc: Michael D Kinney Subject: [Patch] MdePkg Base.h: Define STATIC_ASSERT macro as empty for EBC arch Date: Tue, 24 Sep 2019 23:05:19 +0800 Message-Id: <20190924150519.10304-1-liming.gao@intel.com> X-Mailer: git-send-email 2.16.2.windows.1 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 Signed-off-by: Liming Gao --- MdePkg/Include/Base.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h index ed85b98318..70e4d8daf1 100644 --- a/MdePkg/Include/Base.h +++ b/MdePkg/Include/Base.h @@ -799,12 +799,15 @@ 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 #endif + // // Verify that ProcessorBind.h produced UEFI Data Types that are compliant with // Section 2.3.1 of the UEFI 2.3 Specification. -- 2.13.0.windows.1