1
0
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:
Florian Weimer
2019-06-12 10:41:19 +02:00
parent 680942b016
commit 4e75c2a43b
2 changed files with 10 additions and 0 deletions

View File

@ -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.

View File

@ -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))