From: Paul Eggert Date: Tue, 9 Feb 2016 16:54:11 +0000 (-0800) Subject: stdalign: port to clang 3.7.0 X-Git-Tag: v1.0~6812 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=cd9ecca8812571fc443688d11148f2768ededfa4;p=gnulib.git stdalign: port to clang 3.7.0 Problem reported by Herbert J. Skuhra in: http://lists.gnu.org/archive/html/emacs-devel/2016-02/msg00476.html * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas' from being defined on clang 3.7.0, which has a buggy stdalign.h. See: https://llvm.org/bugs/show_bug.cgi?id=26547 --- diff --git a/ChangeLog b/ChangeLog index 40bdd23684..9d5817525a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2016-02-09 Paul Eggert + + stdalign: port to clang 3.7.0 + Problem reported by Herbert J. Skuhra in: + http://lists.gnu.org/archive/html/emacs-devel/2016-02/msg00476.html + * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas' + from being defined on clang 3.7.0, which has a buggy stdalign.h. See: + https://llvm.org/bugs/show_bug.cgi?id=26547 + 2016-02-08 Paul Eggert readdir_r: now obsolescent diff --git a/lib/stdalign.in.h b/lib/stdalign.in.h index 6fca5b6941..7ce33a0053 100644 --- a/lib/stdalign.in.h +++ b/lib/stdalign.in.h @@ -111,7 +111,7 @@ # endif #endif #if ((defined _Alignas && ! (defined __cplusplus && 201103 <= __cplusplus)) \ - || (defined __STDC_VERSION && 201112 <= __STDC_VERSION__)) + || (defined __STDC_VERSION__ && 201112 <= __STDC_VERSION__)) # define alignas _Alignas #endif #if defined alignas || (defined __cplusplus && 201103 <= __cplusplus)