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