]> git.eshelyaron.com Git - emacs.git/commitdiff
Merge from gnulib
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 27 Feb 2022 13:32:38 +0000 (14:32 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 27 Feb 2022 13:32:38 +0000 (14:32 +0100)
* m4/gnulib-common.m4 (gl_COMMON_BODY):
* lib/gnulib.mk.in (CXXCPP):
* lib/cdefs.h: Updated with admin/merge-gnulib.  (This is in
preparation to adding the nanosleep module later.)

lib/cdefs.h
lib/gnulib.mk.in
m4/gnulib-common.m4

index 44d3826bca9f6f84f862acf1035408a587fac71d..cb2514504f19008a270dd76b4082c2d2388ced92 100644 (file)
@@ -41,7 +41,9 @@
    Similarly for __has_builtin, etc.  */
 #if (defined __has_attribute \
      && (!defined __clang_minor__ \
-         || 3 < __clang_major__ + (5 <= __clang_minor__)))
+         || (defined __apple_build_version__ \
+             ? 6000000 <= __apple_build_version__ \
+             : 3 < __clang_major__ + (5 <= __clang_minor__))))
 # define __glibc_has_attribute(attr) __has_attribute (attr)
 #else
 # define __glibc_has_attribute(attr) 0
index 6b90a80f64a560535927ed5314804a0f2ce0169f..3a9f5b9818e8d48d2519d3e1fb8ada0c3084c844 100644 (file)
@@ -207,7 +207,6 @@ CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@
 CRYPTOLIB = @CRYPTOLIB@
 CXX = @CXX@
-CXXCPP = @CXXCPP@
 CXXFLAGS = @CXXFLAGS@
 CYGWIN_OBJ = @CYGWIN_OBJ@
 C_SWITCH_MACHINE = @C_SWITCH_MACHINE@
index dbc407961481e9e854eb24d971a700f9415091d4..c5ced04f181844195b6f0c37063618d9219f889e 100644 (file)
@@ -69,7 +69,9 @@ AC_DEFUN([gl_COMMON_BODY], [
 [/* Attributes.  */
 #if (defined __has_attribute \
      && (!defined __clang_minor__ \
-         || 3 < __clang_major__ + (5 <= __clang_minor__)))
+         || (defined __apple_build_version__ \
+             ? 6000000 <= __apple_build_version__ \
+             : 3 < __clang_major__ + (5 <= __clang_minor__))))
 # define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__)
 #else
 # define _GL_HAS_ATTRIBUTE(attr) _GL_ATTR_##attr