diff options
Diffstat (limited to 'Middlewares/ST/STM32_WPAN/stm32_wpan_common.h')
-rw-r--r-- | Middlewares/ST/STM32_WPAN/stm32_wpan_common.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Middlewares/ST/STM32_WPAN/stm32_wpan_common.h b/Middlewares/ST/STM32_WPAN/stm32_wpan_common.h index ada159b74..f4592bc51 100644 --- a/Middlewares/ST/STM32_WPAN/stm32_wpan_common.h +++ b/Middlewares/ST/STM32_WPAN/stm32_wpan_common.h @@ -145,7 +145,11 @@ extern "C" { #undef PACKED_STRUCT #if defined ( __CC_ARM ) - #if defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050U) + #if defined ( __GNUC__ ) + /* GNU extension */ + #define PACKED__ __attribute__((packed)) + #define PACKED_STRUCT struct PACKED__ + #elif defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050U) #define PACKED__ __attribute__((packed)) #define PACKED_STRUCT struct PACKED__ #else |