diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h index 5b311f6648..21a603a903 100644 --- a/MdePkg/Include/Base.h +++ b/MdePkg/Include/Base.h @@ -91,7 +91,7 @@ VERIFY_SIZE_OF (__VERIFY_UINT32_ENUM_SIZE, 4); // if the /OPT:REF linker option is used. We defined a macro as this is a // a non standard extension // -#if defined(_MSC_EXTENSIONS) && !defined (MDE_CPU_EBC) +#if defined(_MSC_EXTENSIONS) && _MSC_VER < 1800 && !defined (MDE_CPU_EBC) /// /// Remove global variable from the linked image if there are no references to /// it after all compiler and linker optimizations have been performed.