mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-25 04:01:10 +00:00
posix: Fix fnmatch.c on bootstrap
Only define FALLTHROUGH for _LIBC and do not check __clang_major__ value. It partially syncs with gnulib 5c52f00c69f39fe. Checked with build-many-glibcs.py for aarch64-linux-gnu.
This commit is contained in:
parent
961d7cff51
commit
d7ee6bd8c2
@ -64,7 +64,7 @@ extern int fnmatch (const char *pattern, const char *string, int flags);
|
||||
#endif
|
||||
|
||||
#ifdef _LIBC
|
||||
# if (__GNUC__ >= 7) || (__clang_major__ >= 10)
|
||||
# if __GNUC__ >= 7
|
||||
# define FALLTHROUGH __attribute__ ((__fallthrough__))
|
||||
# else
|
||||
# define FALLTHROUGH ((void) 0)
|
||||
|
Loading…
Reference in New Issue
Block a user