Skip to content

Commit

Permalink
compat: Fix __has_attribute usage
Browse files Browse the repository at this point in the history
Fixes: #195
Link: #195
  • Loading branch information
aabc committed May 9, 2022
1 parent 0040f0f commit 40fefb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ struct module *find_module(const char *name)
/* Copy from 294f69e662d1 ("compiler_attributes.h: Add 'fallthrough' pseudo
* keyword for switch/case use") */
#ifndef fallthrough
# if __has_attribute(__fallthrough__)
# if defined __has_attribute && __has_attribute(__fallthrough__)
# define fallthrough __attribute__((__fallthrough__))
# else
# define fallthrough do {} while (0) /* fallthrough */
Expand Down

0 comments on commit 40fefb2

Please sign in to comment.