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
This commit is contained in:
Savva Mitrofanov 2023-01-18 15:59:20 +06:00
parent e6fee961af
commit 0764246038
No known key found for this signature in database
GPG Key ID: 774924031750BF64

View File

@ -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.