public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] <sys/cdefs.h>: Add __glibc_has_include macro
@ 2019-06-12 11:04 Florian Weimer
0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2019-06-12 11:04 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4e75c2a43bb3208f32556a2b19c939cfe1f54ba6
commit 4e75c2a43bb3208f32556a2b19c939cfe1f54ba6
Author: Florian Weimer <fweimer@redhat.com>
Date: Wed Jun 12 10:41:19 2019 +0200
<sys/cdefs.h>: Add __glibc_has_include macro
Diff:
---
ChangeLog | 4 ++++
misc/sys/cdefs.h | 6 ++++++
2 files changed, 10 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 01fc098..0033023 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 b169537..638872b 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))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-06-12 11:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-12 11:04 [glibc] <sys/cdefs.h>: Add __glibc_has_include macro Florian Weimer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).