diff --git a/EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h b/EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h index c89ca9d00e..0f5b220731 100644 --- a/EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h +++ b/EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h @@ -309,7 +309,7 @@ typedef int32_t intn_t; // // For symbol name in GNU assembly code, an extra "_" is necessary // -#if __GNUC__ +#if defined(__GNUC__) #if defined(linux) #define ASM_PFX(name) name #else diff --git a/EdkCompatibilityPkg/Foundation/Include/X64/EfiBind.h b/EdkCompatibilityPkg/Foundation/Include/X64/EfiBind.h index d3bf5a077e..273490eeca 100644 --- a/EdkCompatibilityPkg/Foundation/Include/X64/EfiBind.h +++ b/EdkCompatibilityPkg/Foundation/Include/X64/EfiBind.h @@ -261,7 +261,7 @@ typedef int64_t intn_t; // // For symbol name in GNU assembly code, an extra "_" is necessary // -#if __GNUC__ +#if defined(__GNUC__) #if defined(linux) #define ASM_PFX(name) name #else