Use __GNUC__ macro to determine if __has_attribute is supported
This commit is contained in:
@@ -138,7 +138,7 @@
|
|||||||
#define TU_ATTR_BIT_FIELD_ORDER_BEGIN
|
#define TU_ATTR_BIT_FIELD_ORDER_BEGIN
|
||||||
#define TU_ATTR_BIT_FIELD_ORDER_END
|
#define TU_ATTR_BIT_FIELD_ORDER_END
|
||||||
|
|
||||||
#if defined(__XC16)
|
#if __GNUC__ < 5
|
||||||
#define TU_ATTR_FALLTHROUGH do {} while (0) /* fallthrough */
|
#define TU_ATTR_FALLTHROUGH do {} while (0) /* fallthrough */
|
||||||
#else
|
#else
|
||||||
#if __has_attribute(__fallthrough__)
|
#if __has_attribute(__fallthrough__)
|
||||||
|
Reference in New Issue
Block a user