Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Flipper-Zero/STM32CubeWB.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Middlewares/ST/STM32_WPAN/stm32_wpan_common.h')
-rw-r--r--Middlewares/ST/STM32_WPAN/stm32_wpan_common.h6
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