mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
<sys/cdefs.h>: Add __glibc_has_include macro
This commit is contained in:
@ -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>
|
2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
|
||||||
|
|
||||||
* string/memmem.c (__memmem): Rewrite to improve performance.
|
* string/memmem.c (__memmem): Rewrite to improve performance.
|
||||||
|
@ -412,6 +412,12 @@
|
|||||||
# define __glibc_has_attribute(attr) 0
|
# define __glibc_has_attribute(attr) 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __has_include
|
||||||
|
# define __glibc_has_include(header) __has_include (header)
|
||||||
|
#else
|
||||||
|
# define __glibc_has_include(header) 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#if (!defined _Noreturn \
|
#if (!defined _Noreturn \
|
||||||
&& (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) < 201112 \
|
&& (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) < 201112 \
|
||||||
&& !__GNUC_PREREQ (4,7))
|
&& !__GNUC_PREREQ (4,7))
|
||||||
|
Reference in New Issue
Block a user