From 0275c649ce9741c6f7237a342ae1a04ae78a11d7 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 29 Jan 2024 18:17:15 +0100 Subject: [PATCH] libc-config: Apply lesson learned on 2023-01-13. * lib/cdefs.h (__glibc_has_attribute): On non-Apple platforms, don't use __has_attribute for clang versions < 5.0. --- ChangeLog | 6 ++++++ lib/cdefs.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c4e54728cd..e34b22d99d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-01-29 Bruno Haible + + libc-config: Apply lesson learned on 2023-01-13. + * lib/cdefs.h (__glibc_has_attribute): On non-Apple platforms, don't + use __has_attribute for clang versions < 5.0. + 2024-01-28 Bruno Haible host-cpu-c-abi: Let gl_HOST_CPU_C_ABI_32BIT never return 'unknown'. diff --git a/lib/cdefs.h b/lib/cdefs.h index 87ddce319d..1bb3c8f635 100644 --- a/lib/cdefs.h +++ b/lib/cdefs.h @@ -43,7 +43,7 @@ && (!defined __clang_minor__ \ || (defined __apple_build_version__ \ ? 6000000 <= __apple_build_version__ \ - : 3 < __clang_major__ + (5 <= __clang_minor__)))) + : 5 <= __clang_major__))) # define __glibc_has_attribute(attr) __has_attribute (attr) #else # define __glibc_has_attribute(attr) 0 -- 2.39.5