X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FInclude%2FBase.h;h=2a55dd2697bae32d698f671d5e5ad4e394ac5dcb;hb=5d967a7fba8361e3fe07604554104ea81c6996e1;hp=2b0ce41e0ed665b925553c1389301ed50d9c761d;hpb=6f906c3944ae2ece5a9dbb051d4022d61756b613;p=mirror_edk2.git diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h index 2b0ce41e0e..2a55dd2697 100644 --- a/MdePkg/Include/Base.h +++ b/MdePkg/Include/Base.h @@ -32,7 +32,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. // if the /OPT:REF linker option is used. We defined a macro as this is a // a non standard extension // -#if defined(_MSC_EXTENSIONS) +#if defined(_MSC_EXTENSIONS) && !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.