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