]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Define GLOABAL_REMOVE_IF_UNREFERENCED for IPF on MSFT tool chains
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 26 Nov 2006 04:08:03 +0000 (04:08 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 26 Nov 2006 04:08:03 +0000 (04:08 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2014 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Ipf/ProcessorBind.h

index 0d8b9e9ccaef90a83b8e0d350cae7d876119f50b..a7fc3a9d8ed39cff5777e4da5ece771ae858dbd8 100644 (file)
@@ -201,7 +201,11 @@ typedef INT64   INTN;
 //  if the /OPT:REF linker option is used. We defined a macro as this is a \r
 //  a non standard extension\r
 //\r
-#define GLOBAL_REMOVE_IF_UNREFERENCED\r
+#if _MSC_EXTENSIONS\r
+  #define GLOBAL_REMOVE_IF_UNREFERENCED __declspec(selectany)\r
+#else\r
+  #define GLOBAL_REMOVE_IF_UNREFERENCED\r
+#endif\r
 \r
 //\r
 // A pointer to a function in IPF points to a plabel.\r