summaryrefslogtreecommitdiffstats
path: root/gl/libc-config.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/libc-config.h')
-rw-r--r--gl/libc-config.h29
1 files changed, 18 insertions, 11 deletions
diff --git a/gl/libc-config.h b/gl/libc-config.h
index 1d28e58c..33da9cf1 100644
--- a/gl/libc-config.h
+++ b/gl/libc-config.h
@@ -1,6 +1,6 @@
1/* System definitions for code taken from the GNU C Library 1/* System definitions for code taken from the GNU C Library
2 2
3 Copyright 2017-2023 Free Software Foundation, Inc. 3 Copyright 2017-2025 Free Software Foundation, Inc.
4 4
5 This program is free software; you can redistribute it and/or 5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public 6 modify it under the terms of the GNU Lesser General Public
@@ -48,6 +48,11 @@
48 48
49/* From glibc <features.h>. */ 49/* From glibc <features.h>. */
50 50
51#if defined __clang__
52 /* clang really only groks GNU C 4.2, regardless of its value of __GNUC__. */
53# undef __GNUC_PREREQ
54# define __GNUC_PREREQ(maj, min) ((maj) < 4 + ((min) <= 2))
55#endif
51#ifndef __GNUC_PREREQ 56#ifndef __GNUC_PREREQ
52# if defined __GNUC__ && defined __GNUC_MINOR__ 57# if defined __GNUC__ && defined __GNUC_MINOR__
53# define __GNUC_PREREQ(maj, min) ((maj) < __GNUC__ + ((min) <= __GNUC_MINOR__)) 58# define __GNUC_PREREQ(maj, min) ((maj) < __GNUC__ + ((min) <= __GNUC_MINOR__))
@@ -137,8 +142,6 @@
137# undef __attribute_returns_twice__ 142# undef __attribute_returns_twice__
138# undef __attribute_used__ 143# undef __attribute_used__
139# undef __attribute_warn_unused_result__ 144# undef __attribute_warn_unused_result__
140# undef __bos
141# undef __bos0
142# undef __errordecl 145# undef __errordecl
143# undef __extension__ 146# undef __extension__
144# undef __extern_always_inline 147# undef __extern_always_inline
@@ -147,21 +150,13 @@
147# undef __fortified_attr_access 150# undef __fortified_attr_access
148# undef __fortify_function 151# undef __fortify_function
149# undef __glibc_c99_flexarr_available 152# undef __glibc_c99_flexarr_available
150# undef __glibc_fortify
151# undef __glibc_fortify_n
152# undef __glibc_has_attribute 153# undef __glibc_has_attribute
153# undef __glibc_has_builtin 154# undef __glibc_has_builtin
154# undef __glibc_has_extension 155# undef __glibc_has_extension
155# undef __glibc_likely 156# undef __glibc_likely
156# undef __glibc_macro_warning 157# undef __glibc_macro_warning
157# undef __glibc_macro_warning1 158# undef __glibc_macro_warning1
158# undef __glibc_objsize
159# undef __glibc_objsize0
160# undef __glibc_safe_len_cond
161# undef __glibc_safe_or_unknown_len
162# undef __glibc_unlikely 159# undef __glibc_unlikely
163# undef __glibc_unsafe_len
164# undef __glibc_unsigned_or_positive
165# undef __inline 160# undef __inline
166# undef __ptr_t 161# undef __ptr_t
167# undef __restrict 162# undef __restrict
@@ -170,6 +165,18 @@
170# undef __va_arg_pack_len 165# undef __va_arg_pack_len
171# undef __warnattr 166# undef __warnattr
172# undef __wur 167# undef __wur
168# ifndef __GNULIB_CDEFS
169# undef __bos
170# undef __bos0
171# undef __glibc_fortify
172# undef __glibc_fortify_n
173# undef __glibc_objsize
174# undef __glibc_objsize0
175# undef __glibc_safe_len_cond
176# undef __glibc_safe_or_unknown_len
177# undef __glibc_unsafe_len
178# undef __glibc_unsigned_or_positive
179# endif
173 180
174/* Include our copy of glibc <sys/cdefs.h>. */ 181/* Include our copy of glibc <sys/cdefs.h>. */
175# include <cdefs.h> 182# include <cdefs.h>