aboutsummaryrefslogtreecommitdiff
path: root/posix/fnmatch.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-01-20 16:07:59 +0000
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-01-20 13:23:33 -0300
commitd7ee6bd8c217a4deb756739039fa9c165d26ec43 (patch)
tree8d7966733f2eeb8e0df2ec4dedeb21b6f87c10fb /posix/fnmatch.c
parent961d7cff51332b7b4ed98d4530a98f73355dda4b (diff)
downloadglibc-d7ee6bd8c217a4deb756739039fa9c165d26ec43.zip
glibc-d7ee6bd8c217a4deb756739039fa9c165d26ec43.tar.gz
glibc-d7ee6bd8c217a4deb756739039fa9c165d26ec43.tar.bz2
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.
Diffstat (limited to 'posix/fnmatch.c')
-rw-r--r--posix/fnmatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/fnmatch.c b/posix/fnmatch.c
index 5896812..b8a71f1 100644
--- a/posix/fnmatch.c
+++ b/posix/fnmatch.c
@@ -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)