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

This commit is contained in:
Quentin Rameau 2016-12-12 21:01:26 +01:00 committed by Rich Felker
parent c1020cf21e
commit bfcf5735d0
1 changed files with 2 additions and 0 deletions

View File

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