Message ID | 20210120130234.1040284-1-adhemerval.zanella@linaro.org |
---|---|
State | Committed |
Commit | 1006250ea2d683e684f65911d738bd84f55c06c1 |
Headers | show |
Series | [COMMITTED] posix: Fix regex_internal.h on bootstrap | expand |
diff --git a/posix/regex_internal.h b/posix/regex_internal.h index e31ac92674..011f733176 100644 --- a/posix/regex_internal.h +++ b/posix/regex_internal.h @@ -848,12 +848,14 @@ re_string_elem_size_at (const re_string_t *pstr, Idx idx) } #endif /* RE_ENABLE_I18N */ -#ifndef FALLTHROUGH -# if (__GNUC__ >= 7) || (__clang_major__ >= 10) +#ifdef _LIBC +# if __GNUC__ >= 7 # define FALLTHROUGH __attribute__ ((__fallthrough__)) # else # define FALLTHROUGH ((void) 0) # endif +#else +# include "attribute.h" #endif #endif /* _REGEX_INTERNAL_H */