summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-03-30 10:30:06 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2013-03-30 10:30:06 -0700
commit119b2d43cc40759394cae256c0a38624cacbf776 (patch)
treefbda9143c9746c167977a9cac755b616eef80f09 /m4
parent9a1971bbaa7e42f9f22b2762f763049ae2ba5892 (diff)
downloademacs-119b2d43cc40759394cae256c0a38624cacbf776.tar.gz
Merge from gnulib
This incorporates: 2013-03-29 stdalign: port to stricter ISO C11 This helps to run 'configure' on MS-Windows; see Eli Zaretskii in <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00999.html>.
Diffstat (limited to 'm4')
-rw-r--r--m4/stdalign.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/m4/stdalign.m4 b/m4/stdalign.m4
index 3d7993dbec8..a866ff670b1 100644
--- a/m4/stdalign.m4
+++ b/m4/stdalign.m4
@@ -33,8 +33,9 @@ AC_DEFUN([gl_STDALIGN_H],
#if \
(__GNUC__ || __IBMC__ || __IBMCPP__ \
|| 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
- int alignas (8) alignas_int = 1;
- char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
+ struct alignas_test { char c; char alignas (8) alignas_8; };
+ char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
+ ? 1 : -1];
#endif
]])],
[gl_cv_header_working_stdalign_h=yes],