Преглед на файлове

in public headers, don't assume pre-C99 compilers have __inline keyword

Quentin Rameau преди 8 години
родител
ревизия
bfcf5735d0
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      include/features.h

+ 2 - 0
include/features.h

@@ -24,6 +24,8 @@
 
 #if __STDC_VERSION__ >= 199901L || defined(__cplusplus)
 #define __inline inline
+#elif !defined(__GNUC__)
+#define __inline
 #endif
 
 #if __STDC_VERSION__ >= 201112L