]> Savannah Git Hosting - gnulib.git/commitdiff
Port FALLTHROUGH to Mac OS X 10.9.
authorBruno Haible <bruno@clisp.org>
Mon, 29 Jan 2024 17:26:41 +0000 (18:26 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 31 Jan 2024 17:47:12 +0000 (18:47 +0100)
Report and fix by Ryan Carsten Schmidt <gnulib@ryandesign.com>
at <https://savannah.gnu.org/bugs/?63866>.

* m4/gnulib-common.m4 (gl_COMMON_BODY): For _GL_HAS_ATTRIBUTE, don't use
__has_attribute for Apple clang versions < 7000000.
* lib/cdefs.h (__glibc_has_attribute): Don't use __has_attribute for
Apple clang versions < 7000000.

ChangeLog
lib/cdefs.h
m4/gnulib-common.m4

index a27785a8faf8672cb8415b2651c219b79341cba3..bc885ab8de0c45cd61680a26f88a4b755dea2710 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2024-01-29  Bruno Haible  <bruno@clisp.org>
+
+       Port FALLTHROUGH to Mac OS X 10.9.
+       Report and fix by Ryan Carsten Schmidt <gnulib@ryandesign.com>
+       at <https://savannah.gnu.org/bugs/?63866>.
+       * m4/gnulib-common.m4 (gl_COMMON_BODY): For _GL_HAS_ATTRIBUTE, don't use
+       __has_attribute for Apple clang versions < 7000000.
+       * lib/cdefs.h (__glibc_has_attribute): Don't use __has_attribute for
+       Apple clang versions < 7000000.
+
 2024-01-28  Bruno Haible  <bruno@clisp.org>
 
        host-cpu-c-abi: Let gl_HOST_CPU_C_ABI_32BIT never return 'unknown'.
index 412f036ce352e0e8573c2dc17f50bf195ba9798a..6c587200672c00ce8eef516ac12773b3038ccd1e 100644 (file)
@@ -42,7 +42,7 @@
 #if (defined __has_attribute \
      && (!defined __clang_minor__ \
          || (defined __apple_build_version__ \
-             ? 6000000 <= __apple_build_version__ \
+             ? 7000000 <= __apple_build_version__ \
              : 3 < __clang_major__ + (5 <= __clang_minor__))))
 # define __glibc_has_attribute(attr) __has_attribute (attr)
 #else
index c3723161356c0d42a9e5b03676dad8a58058a8d3..e6044b8128f9c23dc6bcb845d7c6be658c89215d 100644 (file)
@@ -1,5 +1,5 @@
-# gnulib-common.m4 serial 88
-dnl Copyright (C) 2007-2023 Free Software Foundation, Inc.
+# gnulib-common.m4 serial 88.1
+dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -79,7 +79,7 @@ AC_DEFUN([gl_COMMON_BODY], [
 #if (defined __has_attribute \
      && (!defined __clang_minor__ \
          || (defined __apple_build_version__ \
-             ? 6000000 <= __apple_build_version__ \
+             ? 7000000 <= __apple_build_version__ \
              : 5 <= __clang_major__)))
 # define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__)
 #else