older compiler than gcc 5 does not have __has_attribute
This commit is contained in:
parent
71321134f6
commit
28b9319379
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,4,0)
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,4,0)
|
||||||
#if __has_attribute(__fallthrough__)
|
#if defined(__has_attribute) && __has_attribute(__fallthrough__)
|
||||||
# define fallthrough __attribute__((__fallthrough__))
|
# define fallthrough __attribute__((__fallthrough__))
|
||||||
#else
|
#else
|
||||||
# define fallthrough do {} while (0) /* fallthrough */
|
# define fallthrough do {} while (0) /* fallthrough */
|
||||||
|
|
Loading…
Reference in a new issue