]> Savannah Git Hosting - gnulib.git/commitdiff
libc-config: merge from glibc
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 Oct 2018 05:37:55 +0000 (00:37 -0500)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 Oct 2018 05:39:02 +0000 (00:39 -0500)
* lib/cdefs.h (__glibc_has_attribute): New macro.

ChangeLog
lib/cdefs.h

index 31cf9791dea11dbc70293ad552d5d5be68f2c383..dcabc939bce0d77e38e83274ee31c300b5c75cd2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
 
+       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.
index b1645312487cf0b66e007eb22f9d9092150040ff..98cf74995a547cd8c34900e7f1a0a2681b58a6c0 100644 (file)
 # 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))