diff --git a/MdePkg/Include/Ipf/ProcessorBind.h b/MdePkg/Include/Ipf/ProcessorBind.h index 0d8b9e9cca..a7fc3a9d8e 100644 --- a/MdePkg/Include/Ipf/ProcessorBind.h +++ b/MdePkg/Include/Ipf/ProcessorBind.h @@ -201,7 +201,11 @@ typedef INT64 INTN; // if the /OPT:REF linker option is used. We defined a macro as this is a // a non standard extension // -#define GLOBAL_REMOVE_IF_UNREFERENCED +#if _MSC_EXTENSIONS + #define GLOBAL_REMOVE_IF_UNREFERENCED __declspec(selectany) +#else + #define GLOBAL_REMOVE_IF_UNREFERENCED +#endif // // A pointer to a function in IPF points to a plabel.