]> git.proxmox.com Git - mirror_edk2.git/commit - MdePkg/Include/Ipf/ProcessorBind.h
1, Use #if defined() to judge the switching macro such as compiler macro.
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 23 Feb 2009 05:51:02 +0000 (05:51 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 23 Feb 2009 05:51:02 +0000 (05:51 +0000)
commit5cfbd055878dcca6f3e4081fc5c8805fd2ce7107
tree541c3b9bb643efbcb30860fd2460223f3ae5f4f0
parent04985a579c321272ba3cb5790f1ed5dc698616c4
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@7596 6f19259b-4bc3-4df7-8a09-765794883524
MdePkg/Include/Ia32/ProcessorBind.h
MdePkg/Include/Ipf/ProcessorBind.h
MdePkg/Include/X64/ProcessorBind.h