From: Petteri Aimonen Date: Fri, 30 May 2014 10:45:48 +0000 (+0300) Subject: Add PB_PACKED_STRUCT support for Keil MDK-ARM toolchain X-Git-Tag: 5.0.2~186^2~227 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=8611958a7f5ec16261cbacaf62a0ea92fd9dd314;p=apps%2Fagl-service-can-low-level.git Add PB_PACKED_STRUCT support for Keil MDK-ARM toolchain Patch from Jon Read. Update issue 119 Status: FixedInGit --- diff --git a/pb.h b/pb.h index c66375df..2c1851be 100644 --- a/pb.h +++ b/pb.h @@ -80,8 +80,8 @@ # define PB_PACKED_STRUCT_START # define PB_PACKED_STRUCT_END # define pb_packed __attribute__((packed)) -#elif defined(__ICCARM__) - /* For IAR ARM compiler */ +#elif defined(__ICCARM__) || defined(__CC_ARM) + /* For IAR ARM and Keil MDK-ARM compilers */ # define PB_PACKED_STRUCT_START _Pragma("pack(push, 1)") # define PB_PACKED_STRUCT_END _Pragma("pack(pop)") # define pb_packed