diff options
| author | Reimu NotMoe <[email protected]> | 2023-04-18 17:27:42 +0800 |
|---|---|---|
| committer | Reimu NotMoe <[email protected]> | 2023-04-18 17:27:42 +0800 |
| commit | 9002dc706711741b6db2c53de4e5b94b02322f37 (patch) | |
| tree | c6341f337c894fa5a3471dc568aca2f510edd78a /src/common | |
| parent | fa8f3731c1b2e069dd07d30e86ea4a3af18c34dc (diff) | |
Use __GNUC__ macro to determine if __has_attribute is supported
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_compiler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/tusb_compiler.h b/src/common/tusb_compiler.h index dce32e92b..5ab56e145 100644 --- a/src/common/tusb_compiler.h +++ b/src/common/tusb_compiler.h @@ -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__) |
