# HG changeset patch # User Paul Eggert # Date 1539581875 18000 # Node ID e09facd7352a60fbf944dd2e47137dfbe770d429 # Parent 9c237a90e50c59817fd9cdd955d93bc22c58ad74 libc-config: merge from glibc * lib/cdefs.h (__glibc_has_attribute): New macro. diff -r 9c237a90e50c -r e09facd7352a ChangeLog --- a/ChangeLog Mon Oct 15 00:17:34 2018 -0500 +++ b/ChangeLog Mon Oct 15 00:37:55 2018 -0500 @@ -1,5 +1,8 @@ 2018-10-15 Paul Eggert + libc-config: merge from glibc + * lib/cdefs.h (__glibc_has_attribute): New macro. + regex: depend on libc-config * modules/regex (Depends-on): Add libc-config. This is needed after the recent autoupdate from glibc. diff -r 9c237a90e50c -r e09facd7352a lib/cdefs.h --- a/lib/cdefs.h Mon Oct 15 00:17:34 2018 -0500 +++ b/lib/cdefs.h Mon Oct 15 00:37:55 2018 -0500 @@ -409,6 +409,12 @@ # define __glibc_likely(cond) (cond) #endif +#ifdef __has_attribute +# define __glibc_has_attribute(attr) __has_attribute (attr) +#else +# define __glibc_has_attribute(attr) 0 +#endif + #if (!defined _Noreturn \ && (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) < 201112 \ && !__GNUC_PREREQ (4,7))