]> 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>
Mon, 29 Jan 2024 17:26:41 +0000 (18:26 +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 e34b22d99d7ba58d5720a7ec6606dc8d0a10eb41..dff23544d06cb3f9c0b8372a5092fc0d9acf2178 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-29  Bruno Haible  <bruno@clisp.org>
 
        libc-config: Apply lesson learned on 2023-01-13.
index 1bb3c8f6350147646e6edcd36c98d0efa1ff12ed..d38382ad9d80f11f2c6bd255d502f87c63fe26d0 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__ \
              : 5 <= __clang_major__)))
 # define __glibc_has_attribute(attr) __has_attribute (attr)
 #else
index 03d10fa51ea70458f6a23f184902e7f7b6d69edd..00691c0d6c3a90da5e311c87679291465fd5bf0e 100644 (file)
@@ -1,4 +1,4 @@
-# gnulib-common.m4 serial 90
+# gnulib-common.m4 serial 91
 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,
@@ -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