]> Savannah Git Hosting - gnulib.git/commitdiff
stddef: Fix a compilation error on AIX 7.2 with xlclang.
authorBruno Haible <bruno@clisp.org>
Thu, 16 Mar 2023 13:04:26 +0000 (14:04 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 22 Mar 2023 21:50:48 +0000 (22:50 +0100)
* lib/stddef.in.h (__CLANG_MAX_ALIGN_T_DEFINED): Define whenever we
define GNULIB_defined_max_align_t.

ChangeLog
lib/stddef.in.h

index c7a613148645fd3021053200a74f5e4bf1308f81..017d2ea1a76114bf6c28265f690047b276f0655b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-03-16  Bruno Haible  <bruno@clisp.org>
+
+       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  <jiangchuanganghw@outlook.com>
 
        fts: fail gracefully when out of memory
index 5c9a747d7d292659ba87d4301814013f817f1fde..22a71cf381f0ca08b32d5de9e8717fb25a640dea 100644 (file)
@@ -1,6 +1,6 @@
 /* A substitute for POSIX 2008 <stddef.h>, 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