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
This commit is contained in:
mdkinney 2006-11-26 04:08:03 +00:00
parent c6137cfd5d
commit 20bfd422ed
1 changed files with 5 additions and 1 deletions

View File

@ -201,7 +201,11 @@ typedef INT64 INTN;
// if the /OPT:REF linker option is used. We defined a macro as this is a // if the /OPT:REF linker option is used. We defined a macro as this is a
// a non standard extension // 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. // A pointer to a function in IPF points to a plabel.