]> Savannah Git Hosting - gnulib.git/commitdiff
libc-config: Apply lesson learned on 2023-01-13.
authorBruno Haible <bruno@clisp.org>
Mon, 29 Jan 2024 17:17:15 +0000 (18:17 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 29 Jan 2024 17:17:15 +0000 (18:17 +0100)
* lib/cdefs.h (__glibc_has_attribute): On non-Apple platforms, don't
use __has_attribute for clang versions < 5.0.

ChangeLog
lib/cdefs.h

index c4e54728cd8f989358e494ce7395afc990dfb360..e34b22d99d7ba58d5720a7ec6606dc8d0a10eb41 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-01-29  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        host-cpu-c-abi: Let gl_HOST_CPU_C_ABI_32BIT never return 'unknown'.
index 87ddce319dc6227904b20368efcbcfb7750a8c4b..1bb3c8f6350147646e6edcd36c98d0efa1ff12ed 100644 (file)
@@ -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