about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2019-06-12 10:41:19 +0200
committerFlorian Weimer <fweimer@redhat.com>2019-06-12 13:04:43 +0200
commit4e75c2a43bb3208f32556a2b19c939cfe1f54ba6 (patch)
tree029d589ee5e29658f67f84d67734e206562bb190
parent680942b0167715e123d934b609060cd382f8e39f (diff)
downloadglibc-4e75c2a43bb3208f32556a2b19c939cfe1f54ba6.tar.gz
glibc-4e75c2a43bb3208f32556a2b19c939cfe1f54ba6.tar.xz
glibc-4e75c2a43bb3208f32556a2b19c939cfe1f54ba6.zip
<sys/cdefs.h>: Add __glibc_has_include macro
-rw-r--r--ChangeLog4
-rw-r--r--misc/sys/cdefs.h6
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 01fc098865..0033023179 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2019-06-12  Florian Weimer  <fweimer@redhat.com>
+
+	* misc/sys/cdefs.h (__glibc_has_include): Define.
+
 2019-06-12  Wilco Dijkstra  <wdijkstr@arm.com>
 
 	* string/memmem.c (__memmem): Rewrite to improve performance.
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index b1695376dc..638872b87b 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -412,6 +412,12 @@
 # define __glibc_has_attribute(attr)	0
 #endif
 
+#ifdef __has_include
+# define __glibc_has_include(header)	__has_include (header)
+#else
+# define __glibc_has_include(header)	0
+#endif
+
 #if (!defined _Noreturn \
      && (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) < 201112 \
      &&  !__GNUC_PREREQ (4,7))