X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BaseTools%2FSource%2FC%2FInclude%2FCommon%2FBaseTypes.h;fp=BaseTools%2FSource%2FC%2FInclude%2FCommon%2FBaseTypes.h;h=150980b4c0bf5facf97a55d13bc0e66ba891ff34;hp=31d0662085a811b358529c238cadd4862541806d;hb=cf0d09ca7b28c360730db645e8bee4dfe0ae3134;hpb=f1567720b13a578ffa54716119f826df622babcd diff --git a/BaseTools/Source/C/Include/Common/BaseTypes.h b/BaseTools/Source/C/Include/Common/BaseTypes.h index 31d0662085..150980b4c0 100644 --- a/BaseTools/Source/C/Include/Common/BaseTypes.h +++ b/BaseTools/Source/C/Include/Common/BaseTypes.h @@ -57,6 +57,16 @@ #define NULL ((VOID *) 0) #endif +#ifdef __CC_ARM + // + // Older RVCT ARM compilers don't fully support #pragma pack and require __packed + // as a prefix for the structure. + // + #define PACKED __packed +#else + #define PACKED +#endif + // // Support for variable length argument lists using the ANSI standard. //