From 1b4884a4d67aecd9eea361670506b2c822d88c1f Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 16 Mar 2023 14:04:26 +0100 Subject: [PATCH] stddef: Fix a compilation error on AIX 7.2 with xlclang. * lib/stddef.in.h (__CLANG_MAX_ALIGN_T_DEFINED): Define whenever we define GNULIB_defined_max_align_t. --- ChangeLog | 6 ++++++ lib/stddef.in.h | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c7a6131486..017d2ea1a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-03-16 Bruno Haible + + stddef: Fix a compilation error on AIX 7.2 with xlclang. + * lib/stddef.in.h (__CLANG_MAX_ALIGN_T_DEFINED): Define whenever we + define GNULIB_defined_max_align_t. + 2023-02-27 ChuanGang Jiang fts: fail gracefully when out of memory diff --git a/lib/stddef.in.h b/lib/stddef.in.h index 5c9a747d7d..22a71cf381 100644 --- a/lib/stddef.in.h +++ b/lib/stddef.in.h @@ -1,6 +1,6 @@ /* A substitute for POSIX 2008 , for platforms that have issues. - Copyright (C) 2009-2022 Free Software Foundation, Inc. + Copyright (C) 2009-2023 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as @@ -69,6 +69,7 @@ typedef long rpl_max_align_t; typedef long max_align_t; # define _MAX_ALIGN_T # endif +# define __CLANG_MAX_ALIGN_T_DEFINED # define GNULIB_defined_max_align_t 1 # endif # endif @@ -137,6 +138,7 @@ typedef union long int __i _GL_STDDEF_ALIGNAS (long int); } rpl_max_align_t; # define max_align_t rpl_max_align_t +# define __CLANG_MAX_ALIGN_T_DEFINED # define GNULIB_defined_max_align_t 1 # endif # endif -- 2.39.5