]> git.proxmox.com Git - mirror_edk2.git/commit
1, Use #if defined() to judge the switching macro such as compiler macro.
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 23 Feb 2009 06:09:44 +0000 (06:09 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 23 Feb 2009 06:09:44 +0000 (06:09 +0000)
commitc85640b2a118942b409360bea5635d8976e9b663
tree0c47d06c957f5f451baf0d263d1c10352d698d42
parent5cfbd055878dcca6f3e4081fc5c8805fd2ce7107
1, Use #if defined() to judge the switching macro such as compiler macro.
Original, some code directly judge the value of these macros, but linux ICC compiler will report error as "zero used for undefined preprocessing identifier". So it is better judge whether these macros are defined before accessing their value.
2, Use #if defined() style to replace #ifdef style.
It is good to keep consistent style for this case.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7597 6f19259b-4bc3-4df7-8a09-765794883524
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Ebc/EdkIIGlueProcessorBind.h
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Ipf/EdkIIGlueProcessorBind.h
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/X64/EdkIIGlueProcessorBind.h