We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 723e21a commit d97b6d5Copy full SHA for d97b6d5
src/common/tusb_compiler.h
@@ -138,10 +138,14 @@
138
#define TU_ATTR_BIT_FIELD_ORDER_BEGIN
139
#define TU_ATTR_BIT_FIELD_ORDER_END
140
141
- #if __has_attribute(__fallthrough__)
142
- #define TU_ATTR_FALLTHROUGH __attribute__((fallthrough))
143
- #else
+ #if defined(__XC16)
144
#define TU_ATTR_FALLTHROUGH do {} while (0) /* fallthrough */
+ #else
+ #if __has_attribute(__fallthrough__)
145
+ #define TU_ATTR_FALLTHROUGH __attribute__((fallthrough))
146
147
+ #define TU_ATTR_FALLTHROUGH do {} while (0) /* fallthrough */
148
+ #endif
149
#endif
150
151
// Endian conversion use well-known host to network (big endian) naming
0 commit comments