From b06059bf6e1d9e41d9ae48ab958cd2e89f41ba1e Mon Sep 17 00:00:00 2001 From: "hyunghwan.chung" Date: Fri, 3 May 2019 08:42:44 +0000 Subject: [PATCH] added __cplusplus when determining inline availability --- moo/lib/moo-cmn.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moo/lib/moo-cmn.h b/moo/lib/moo-cmn.h index c3bcc5f..6f3f227 100644 --- a/moo/lib/moo-cmn.h +++ b/moo/lib/moo-cmn.h @@ -769,8 +769,8 @@ typedef struct moo_t moo_t; # define MOO_PRIVATE #endif -#if defined(__STDC_VERSION__) && (__STDC_VERSION__>=199901L) - /* C99 has inline */ +#if defined(__cplusplus) || (defined(__STDC_VERSION__) && (__STDC_VERSION__>=199901L)) + /* C++/C99 has inline */ # define MOO_INLINE inline # define MOO_HAVE_INLINE #elif defined(__GNUC__) && defined(__GNUC_GNU_INLINE__)