projects
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56e0bce
)
local-revert-glibc_has_include
author
GNU Libc Maintainers
<debian-glibc@lists.debian.org>
Wed, 25 Mar 2020 12:56:56 +0000
(12:56 +0000)
committer
Aurelien Jarno
<aurel32@debian.org>
Wed, 25 Mar 2020 12:56:56 +0000
(12:56 +0000)
Partial revert of upstream commit
bfa864e1645e140da2e1aae3cf0d0ba0674f6eb5
until gcc stops providing fix-includes.
Gbp-Pq: Topic any
Gbp-Pq: Name local-revert-glibc_has_include.diff
misc/sys/cdefs.h
patch
|
blob
|
history
diff --git
a/misc/sys/cdefs.h
b/misc/sys/cdefs.h
index b1695376dc07872ccbb8d7dfec2e5c2975187f62..f1bd994a104c52442a20b6db90add12637e915d8 100644
(file)
--- a/
misc/sys/cdefs.h
+++ b/
misc/sys/cdefs.h
@@
-412,6
+412,14
@@
# define __glibc_has_attribute(attr) 0
#endif
+#ifdef __has_include
+/* Do not use a function-like macro, so that __has_include can inhibit
+ macro expansion. */
+# define __glibc_has_include __has_include
+#else
+# define __glibc_has_include(header) 0
+#endif
+
#if (!defined _Noreturn \
&& (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) < 201112 \
&& !__GNUC_PREREQ (4,7))