]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - misc/sys/cdefs.h
<sys/cdefs.h>: Add __glibc_has_include macro
[thirdparty/glibc.git] / misc / sys / cdefs.h
index b1695376dc07872ccbb8d7dfec2e5c2975187f62..638872b87b53b31b7cadad546aace637134690c0 100644 (file)
 # 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))