local-revert-glibc_has_include
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Wed, 25 Mar 2020 12:56:56 +0000 (12:56 +0000)
committerAurelien 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

index b1695376dc07872ccbb8d7dfec2e5c2975187f62..f1bd994a104c52442a20b6db90add12637e915d8 100644 (file)
 # 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))