mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-29 10:20:57 +00:00
Use __GNUC__ macro to determine if __has_attribute is supported
This commit is contained in:
parent
fa8f3731c1
commit
9002dc7067
@ -138,7 +138,7 @@
|
||||
#define TU_ATTR_BIT_FIELD_ORDER_BEGIN
|
||||
#define TU_ATTR_BIT_FIELD_ORDER_END
|
||||
|
||||
#if defined(__XC16)
|
||||
#if __GNUC__ < 5
|
||||
#define TU_ATTR_FALLTHROUGH do {} while (0) /* fallthrough */
|
||||
#else
|
||||
#if __has_attribute(__fallthrough__)
|
||||
|
Loading…
x
Reference in New Issue
Block a user