From: Eli Zaretskii Date: Sat, 30 Mar 2013 06:08:32 +0000 (+0300) Subject: Incorporated m4/stdalign.m4 fix from gnulib. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~2026^2~229^2~63^2~65 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a433a2a74329d1125b5976bb5c4f1ea2d3ab7a84;p=emacs.git Incorporated m4/stdalign.m4 fix from gnulib. --- 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],