summaryrefslogtreecommitdiff
path: root/gettext-tools/libgettextpo/stddef.in.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-06-11 13:13:21 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-06-11 13:13:21 +0000
commit500500ec9b7b0d0cef90b48c9b4ddc8866b5f19c (patch)
tree1d7b3e6fab5c199fdbbaab53ee9532de6a4c8cf7 /gettext-tools/libgettextpo/stddef.in.h
parent6eb5949dd99d174393465069c2fd0bab32deddcc (diff)
downloadgettext-tarball-500500ec9b7b0d0cef90b48c9b4ddc8866b5f19c.tar.gz
Diffstat (limited to 'gettext-tools/libgettextpo/stddef.in.h')
-rw-r--r--gettext-tools/libgettextpo/stddef.in.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/gettext-tools/libgettextpo/stddef.in.h b/gettext-tools/libgettextpo/stddef.in.h
index 698307b..f4c4a10 100644
--- a/gettext-tools/libgettextpo/stddef.in.h
+++ b/gettext-tools/libgettextpo/stddef.in.h
@@ -1,6 +1,6 @@
/* A substitute for POSIX 2008 <stddef.h>, for platforms that have issues.
- Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Copyright (C) 2009-2016 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -81,8 +81,10 @@
# 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