diff options
| author | Lars Ingebrigtsen | 2022-02-27 14:32:38 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-02-27 14:32:38 +0100 |
| commit | 6a10a3e8d489d7b4dcffd6b4c63cee77e73e2535 (patch) | |
| tree | 044830fcca341290bc678cd2126584ae72762129 | |
| parent | 704a40ad75fd01d7efafbb9db7b8d5ff403e44eb (diff) | |
| download | emacs-6a10a3e8d489d7b4dcffd6b4c63cee77e73e2535.tar.gz emacs-6a10a3e8d489d7b4dcffd6b4c63cee77e73e2535.zip | |
Merge from gnulib
* 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.)
| -rw-r--r-- | lib/cdefs.h | 4 | ||||
| -rw-r--r-- | lib/gnulib.mk.in | 1 | ||||
| -rw-r--r-- | m4/gnulib-common.m4 | 4 |
3 files changed, 6 insertions, 3 deletions
diff --git a/lib/cdefs.h b/lib/cdefs.h index 44d3826bca9..cb2514504f1 100644 --- a/lib/cdefs.h +++ b/lib/cdefs.h | |||
| @@ -41,7 +41,9 @@ | |||
| 41 | Similarly for __has_builtin, etc. */ | 41 | Similarly for __has_builtin, etc. */ |
| 42 | #if (defined __has_attribute \ | 42 | #if (defined __has_attribute \ |
| 43 | && (!defined __clang_minor__ \ | 43 | && (!defined __clang_minor__ \ |
| 44 | || 3 < __clang_major__ + (5 <= __clang_minor__))) | 44 | || (defined __apple_build_version__ \ |
| 45 | ? 6000000 <= __apple_build_version__ \ | ||
| 46 | : 3 < __clang_major__ + (5 <= __clang_minor__)))) | ||
| 45 | # define __glibc_has_attribute(attr) __has_attribute (attr) | 47 | # define __glibc_has_attribute(attr) __has_attribute (attr) |
| 46 | #else | 48 | #else |
| 47 | # define __glibc_has_attribute(attr) 0 | 49 | # define __glibc_has_attribute(attr) 0 |
diff --git a/lib/gnulib.mk.in b/lib/gnulib.mk.in index 6b90a80f64a..3a9f5b9818e 100644 --- a/lib/gnulib.mk.in +++ b/lib/gnulib.mk.in | |||
| @@ -207,7 +207,6 @@ CPP = @CPP@ | |||
| 207 | CPPFLAGS = @CPPFLAGS@ | 207 | CPPFLAGS = @CPPFLAGS@ |
| 208 | CRYPTOLIB = @CRYPTOLIB@ | 208 | CRYPTOLIB = @CRYPTOLIB@ |
| 209 | CXX = @CXX@ | 209 | CXX = @CXX@ |
| 210 | CXXCPP = @CXXCPP@ | ||
| 211 | CXXFLAGS = @CXXFLAGS@ | 210 | CXXFLAGS = @CXXFLAGS@ |
| 212 | CYGWIN_OBJ = @CYGWIN_OBJ@ | 211 | CYGWIN_OBJ = @CYGWIN_OBJ@ |
| 213 | C_SWITCH_MACHINE = @C_SWITCH_MACHINE@ | 212 | C_SWITCH_MACHINE = @C_SWITCH_MACHINE@ |
diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4 index dbc40796148..c5ced04f181 100644 --- a/m4/gnulib-common.m4 +++ b/m4/gnulib-common.m4 | |||
| @@ -69,7 +69,9 @@ AC_DEFUN([gl_COMMON_BODY], [ | |||
| 69 | [/* Attributes. */ | 69 | [/* Attributes. */ |
| 70 | #if (defined __has_attribute \ | 70 | #if (defined __has_attribute \ |
| 71 | && (!defined __clang_minor__ \ | 71 | && (!defined __clang_minor__ \ |
| 72 | || 3 < __clang_major__ + (5 <= __clang_minor__))) | 72 | || (defined __apple_build_version__ \ |
| 73 | ? 6000000 <= __apple_build_version__ \ | ||
| 74 | : 3 < __clang_major__ + (5 <= __clang_minor__)))) | ||
| 73 | # define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__) | 75 | # define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__) |
| 74 | #else | 76 | #else |
| 75 | # define _GL_HAS_ATTRIBUTE(attr) _GL_ATTR_##attr | 77 | # define _GL_HAS_ATTRIBUTE(attr) _GL_ATTR_##attr |