]> code.delx.au - gnu-emacs/blobdiff - lib/stddef.in.h
Sync with gnulib
[gnu-emacs] / lib / stddef.in.h
index c6d2317ca2da766559d18114ec32d08e8818ef61..f4c4a1070d5ba801090fe1add31c82d050d49156 100644 (file)
 # define wchar_t int
 #endif
 
-/* Some platforms lack max_align_t.  */
-#if !@HAVE_MAX_ALIGN_T@
+/* Some platforms lack max_align_t.  The check for _GCC_MAX_ALIGN_T is
+   a hack in case the configure-time test was done with g++ even though
+   we are currently compiling with gcc.  */
+#if ! (@HAVE_MAX_ALIGN_T@ || defined _GCC_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,
    and the C11 standard allows this.  Work around this problem by