d8307d
commit 8d141877e07cc594e9fefc3795b8ba729288093c
d8307d
Author: Florian Weimer <fweimer@redhat.com>
d8307d
Date:   Fri Jun 14 15:46:02 2019 +0200
d8307d
d8307d
    <sys/cdefs.h>: Inhibit macro expansion for __glibc_has_include
d8307d
    
d8307d
    This is currently ineffective with GCC because of GCC PR 80005, but
d8307d
    it makes sense to anticipate a fix for this defect.
d8307d
    
d8307d
    Suggested by Zack Weinberg.
d8307d
    
d8307d
    Reviewed-by: Carlos O'Donell <carlos@redhat.com>
d8307d
d8307d
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
d8307d
index 0500779d0c1b64c2..9e840e602f815d86 100644
d8307d
--- a/misc/sys/cdefs.h
d8307d
+++ b/misc/sys/cdefs.h
d8307d
@@ -413,7 +413,9 @@
d8307d
 #endif
d8307d
 
d8307d
 #ifdef __has_include
d8307d
-# define __glibc_has_include(header)	__has_include (header)
d8307d
+/* Do not use a function-like macro, so that __has_include can inhibit
d8307d
+   macro expansion.  */
d8307d
+# define __glibc_has_include __has_include
d8307d
 #else
d8307d
 # define __glibc_has_include(header)	0
d8307d
 #endif