summaryrefslogtreecommitdiff
path: root/MdePkg/Include/Ipf
diff options
context:
space:
mode:
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2006-11-26 04:08:03 +0000
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2006-11-26 04:08:03 +0000
commit20bfd422ed24d772cf7e0c8bd214d6ce5a454c68 (patch)
treed8bf547deb342aa595f6a12615006d8fb5ad9e79 /MdePkg/Include/Ipf
parentc6137cfd5d5272401fdd6f60bf51ffe51fcc61b2 (diff)
downloadedk2-platforms-20bfd422ed24d772cf7e0c8bd214d6ce5a454c68.tar.xz
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
Diffstat (limited to 'MdePkg/Include/Ipf')
-rw-r--r--MdePkg/Include/Ipf/ProcessorBind.h6
1 files changed, 5 insertions, 1 deletions
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.