From: Bruno Haible Date: Mon, 29 Jul 2024 20:20:32 +0000 (+0200) Subject: An update for clang >= 16. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=9f4cb69f74ee439ca9eecdd83f2be1046a620cec;p=gnulib.git An update for clang >= 16. * m4/gnulib-common.m4 (gl_COMMON_BODY): Don't define _GL_BRACKET_BEFORE_ATTRIBUTE with clang++ 16 or newer. --- diff --git a/ChangeLog b/ChangeLog index 0ca76f8d40..b7ee2430dd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-07-29 Bruno Haible + + An update for clang >= 16. + * m4/gnulib-common.m4 (gl_COMMON_BODY): Don't define + _GL_BRACKET_BEFORE_ATTRIBUTE with clang++ 16 or newer. + 2024-07-29 Bruno Haible Fix misspelling of __clang_major__. diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4 index 71d90dfe71..9602c705e1 100644 --- a/m4/gnulib-common.m4 +++ b/m4/gnulib-common.m4 @@ -1,5 +1,5 @@ # gnulib-common.m4 -# serial 96 +# serial 97 dnl Copyright (C) 2007-2024 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -139,7 +139,7 @@ AC_DEFUN([gl_COMMON_BODY], [ various _GL_ATTRIBUTE_* can be cumulated on the same declaration in any order. */ #ifdef __cplusplus -# if defined __clang__ +# if defined __clang__ && __clang_major__ < 16 # define _GL_BRACKET_BEFORE_ATTRIBUTE 1 # endif #else