diff --git a/lib/hcl-cmn.h b/lib/hcl-cmn.h index 3ea7208..9544364 100644 --- a/lib/hcl-cmn.h +++ b/lib/hcl-cmn.h @@ -757,8 +757,8 @@ typedef struct hcl_t hcl_t; # define HCL_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 HCL_INLINE inline # define HCL_HAVE_INLINE #elif defined(__GNUC__) && defined(__GNUC_GNU_INLINE__)