From 10be482d9737df89cc6ea4d4a3951074411056c2 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Fri, 3 May 2019 08:42:59 +0000 Subject: [PATCH] added __cplusplus when determining inline availability --- mio/lib/mio-cmn.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mio/lib/mio-cmn.h b/mio/lib/mio-cmn.h index 94d2fcc..d32c7bb 100644 --- a/mio/lib/mio-cmn.h +++ b/mio/lib/mio-cmn.h @@ -658,7 +658,8 @@ struct mio_cmgr_t # define MIO_PRIVATE #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_HAVE_INLINE #elif defined(__GNUC__) && defined(__GNUC_GNU_INLINE__)