From 20bfd422ed24d772cf7e0c8bd214d6ce5a454c68 Mon Sep 17 00:00:00 2001 From: mdkinney Date: Sun, 26 Nov 2006 04:08:03 +0000 Subject: [PATCH] Define GLOABAL_REMOVE_IF_UNREFERENCED for IPF on MSFT tool chains git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2014 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Include/Ipf/ProcessorBind.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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. -- 2.39.2