diff options
author | Bruno Haible <bruno@clisp.org> | 2021-02-08 23:18:34 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2021-02-08 23:18:34 +0100 |
commit | 0b38e1d69f03d3977d7ae7926c1efeb461a8a971 (patch) | |
tree | 10e7636ac1f0a465d793f944f8c2dbb26aedf505 /lib/stddef.in.h | |
parent | 548423f22f9a232188d849bf6b4c1abfb7adaa0c (diff) | |
download | gnulib-0b38e1d69f03d3977d7ae7926c1efeb461a8a971.tar.gz |
stddef: Fix test-stddef compilation error on MidnightBSD/x86.
* lib/stddef.in.h (_GL_STDDEF_ALIGNAS, rpl_max_align_t, max_align_t):
Don't ignore HAVE_MAX_ALIGN_T if the compiler is clang.
Diffstat (limited to 'lib/stddef.in.h')
-rw-r--r-- | lib/stddef.in.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stddef.in.h b/lib/stddef.in.h index 5d3e087b44..638589274f 100644 --- a/lib/stddef.in.h +++ b/lib/stddef.in.h @@ -109,7 +109,7 @@ typedef long max_align_t; && defined __cplusplus # include <cstddef> #else -# if ! (@HAVE_MAX_ALIGN_T@ || defined _GCC_MAX_ALIGN_T) +# if ! (@HAVE_MAX_ALIGN_T@ || (defined _GCC_MAX_ALIGN_T && !defined __clang__)) # if !GNULIB_defined_max_align_t /* On the x86, the maximum storage alignment of double, long, etc. is 4, but GCC's C11 ABI for x86 says that max_align_t has an alignment of 8, |