in public headers, don't assume pre-C99 compilers have __inline keyword
authorQuentin Rameau <quinq@fifth.space>
Mon, 12 Dec 2016 20:01:26 +0000 (21:01 +0100)
committerRich Felker <dalias@aerifal.cx>
Sat, 17 Dec 2016 04:12:32 +0000 (23:12 -0500)
include/features.h

index 3cc3e57933e1ae67c295e70d6108bb1b86b11f8f..f4d651efcd0a39b021fec66cdf1469b941654a5a 100644 (file)
@@ -24,6 +24,8 @@
 
 #if __STDC_VERSION__ >= 199901L || defined(__cplusplus)
 #define __inline inline
+#elif !defined(__GNUC__)
+#define __inline
 #endif
 
 #if __STDC_VERSION__ >= 201112L