File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
components/802.15.4_RF/stm-s2lp-rf-driver/source
features/frameworks/nanostack-libservice/mbed-client-libservice Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,11 @@ typedef enum {
301
301
S2LP_STATE_SYNTH_SETUP = 0x50
302
302
} s2lp_states_e;
303
303
304
+ #if defined __cplusplus && __cplusplus >= 201103
305
+ typedef enum : uint8_t {
306
+ #else
304
307
typedef enum {
308
+ #endif
305
309
S2LP_CMD_TX = 0x60 ,
306
310
S2LP_CMD_RX,
307
311
S2LP_CMD_READY,
Original file line number Diff line number Diff line change @@ -121,7 +121,15 @@ typedef int_fast32_t int_fast24_t;
121
121
#define alignas (n ) __align(n)
122
122
#define __alignas_is_defined 1
123
123
#elif (defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L) || (defined __cplusplus && __cplusplus >= 201103L)
124
- #include < stdalign.h>
124
+ # if defined __ARMCC_VERSION && __ARMCC_VERSION < 6120000
125
+ /* Workaround for Arm Compiler versions prior to 6.12 */
126
+ # if !defined __cplusplus
127
+ # define alignas _Alignas
128
+ # endif
129
+ # define __alignas_is_defined 1
130
+ # else
131
+ # include < stdalign.h>
132
+ # endif
125
133
#elif defined __GNUC__
126
134
#define alignas (n ) __attribute__((__aligned__(n)))
127
135
#define __alignas_is_defined 1
You can’t perform that action at this time.
0 commit comments