REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2628
After switching CLANGPDB's IA32 target to i686-unknown-windows, clang will define _MSC_EXTENSIONS and _MSC_VER. Use __clang__ to decide if using clang. CC: Vitaly Cheptsov <vit9...@protonmail.com> CC: Liming Gao <liming....@intel.com> CC: Michael D Kinney <michael.d.kin...@intel.com> Signed-off-by: Zhiguang Liu <zhiguang....@intel.com> --- MdePkg/Include/Base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h index 85a091b9d5..c6da816aa9 100644 --- a/MdePkg/Include/Base.h +++ b/MdePkg/Include/Base.h @@ -799,7 +799,7 @@ typedef UINTN *BASE_LIST; **/ #ifdef MDE_CPU_EBC #define STATIC_ASSERT(Expression, Message) -#elif defined(_MSC_EXTENSIONS) +#elif defined(_MSC_EXTENSIONS) && !defined(__clang__) #define STATIC_ASSERT static_assert #else #define STATIC_ASSERT _Static_assert -- 2.25.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#56129): https://edk2.groups.io/g/devel/message/56129 Mute This Topic: https://groups.io/mt/72512068/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-