Use __GNUC__ macro to determine if __has_attribute is supported

This commit is contained in:
Reimu NotMoe 2023-04-18 17:27:42 +08:00
parent fa8f3731c1
commit 9002dc7067
1 changed files with 1 additions and 1 deletions

View File

@ -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__)