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