From 119b2d43cc40759394cae256c0a38624cacbf776 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 30 Mar 2013 10:30:06 -0700 Subject: [PATCH] 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 . --- ChangeLog | 7 +++++++ m4/stdalign.m4 | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2426565a66f..2ddcd03bfcb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2013-03-30 Paul Eggert + + Merge from gnulib, incorporating: + 2013-03-29 stdalign: port to stricter ISO C11 + This helps to run 'configure' on MS-Windows; see Eli Zaretskii in + . + 2013-03-27 Paul Eggert * configure.ac (HAVE_XKBGETKEYBOARD): Remove. 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], -- 2.39.2