added __cplusplus when determining inline availability
This commit is contained in:
parent
9212131997
commit
10be482d97
@ -658,7 +658,8 @@ struct mio_cmgr_t
|
|||||||
# define MIO_PRIVATE
|
# define MIO_PRIVATE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__STDC_VERSION__) && (__STDC_VERSION__>=199901L)
|
#if defined(__cplusplus) || (defined(__STDC_VERSION__) && (__STDC_VERSION__>=199901L))
|
||||||
|
/* C++/C99 */
|
||||||
# define MIO_INLINE inline
|
# define MIO_INLINE inline
|
||||||
# define MIO_HAVE_INLINE
|
# define MIO_HAVE_INLINE
|
||||||
#elif defined(__GNUC__) && defined(__GNUC_GNU_INLINE__)
|
#elif defined(__GNUC__) && defined(__GNUC_GNU_INLINE__)
|
||||||
|
Loading…
Reference in New Issue
Block a user