From a433a2a74329d1125b5976bb5c4f1ea2d3ab7a84 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 30 Mar 2013 09:08:32 +0300 Subject: [PATCH] Incorporated m4/stdalign.m4 fix from gnulib. --- m4/stdalign.m4 | 5 +++-- 1 file 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], -- 2.39.2