From 076424603815867b98efd650fcce0152c345cc26 Mon Sep 17 00:00:00 2001 From: Savva Mitrofanov Date: Wed, 18 Jan 2023 15:59:20 +0600 Subject: [PATCH] MdePkg/Include: Corrects ALIGNOF macro in Base.h for MSVC This change should correct compatibility with MSVC if the compiler flags undefines _MSC_VER, for example, like OpensslLib Signed-off-by: Savva Mitrofanov --- 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 e908738210..4e6e3ce283 100644 --- a/MdePkg/Include/Base.h +++ b/MdePkg/Include/Base.h @@ -771,7 +771,7 @@ typedef UINTN *BASE_LIST; // support the standard operator _Alignof. // #define ALIGNOF(TYPE) _Alignof (TYPE) -#elif defined(_MSC_VER) +#elif defined(_MSC_EXTENSIONS) // // Earlier versions of MSVC, at least MSVC 2008 and later, support the // vendor-extension __alignof.