mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 22:30:07 +00:00
<sys/cdefs.h>: Inhibit macro expansion for __glibc_has_include
This is currently ineffective with GCC because of GCC PR 80005, but it makes sense to anticipate a fix for this defect. Suggested by Zack Weinberg. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
parent
cf27468602
commit
8d141877e0
@ -1,3 +1,9 @@
|
|||||||
|
2019-06-14 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
|
* misc/sys/cdefs.h (__glibc_has_include): Do not use a
|
||||||
|
function-like macro, so that __has_include can inhibit expansion
|
||||||
|
of its argument.
|
||||||
|
|
||||||
2019-06-13 Joseph Myers <joseph@codesourcery.com>
|
2019-06-13 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
|
* sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
|
||||||
|
@ -413,7 +413,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __has_include
|
#ifdef __has_include
|
||||||
# define __glibc_has_include(header) __has_include (header)
|
/* Do not use a function-like macro, so that __has_include can inhibit
|
||||||
|
macro expansion. */
|
||||||
|
# define __glibc_has_include __has_include
|
||||||
#else
|
#else
|
||||||
# define __glibc_has_include(header) 0
|
# define __glibc_has_include(header) 0
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user