From: klu2 Date: Mon, 2 Jun 2008 02:22:31 +0000 (+0000) Subject: Use #if...#else to not confuse some lint tools for definition of EFIAPI X-Git-Tag: edk2-stable201903~20899 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=86b2b825c48d9524db4870b87c185f707a3b1dfa Use #if...#else to not confuse some lint tools for definition of EFIAPI git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5316 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdePkg/Include/Ia32/ProcessorBind.h b/MdePkg/Include/Ia32/ProcessorBind.h index e2e397a818..45e9c14bf3 100644 --- a/MdePkg/Include/Ia32/ProcessorBind.h +++ b/MdePkg/Include/Ia32/ProcessorBind.h @@ -176,10 +176,10 @@ typedef INT32 INTN; // Microsoft* compiler requires _EFIAPI useage, __cdecl is Microsoft* specific C. // #define EFIAPI __cdecl -#endif - -#if __GNUC__ - #define EFIAPI __attribute__((cdecl)) +#else + #if __GNUC__ + #define EFIAPI __attribute__((cdecl)) + #endif #endif //