added __cplusplus when determining inline availability

This commit is contained in:
hyung-hwan 2019-05-03 08:42:52 +00:00
parent 727865dcc5
commit a58f9e47b0

View File

@ -757,8 +757,8 @@ typedef struct hcl_t hcl_t;
# define HCL_PRIVATE # define HCL_PRIVATE
#endif #endif
#if defined(__STDC_VERSION__) && (__STDC_VERSION__>=199901L) #if defined(__cplusplus) || (defined(__STDC_VERSION__) && (__STDC_VERSION__>=199901L))
/* C99 has inline */ /* C++/C99 has inline */
# define HCL_INLINE inline # define HCL_INLINE inline
# define HCL_HAVE_INLINE # define HCL_HAVE_INLINE
#elif defined(__GNUC__) && defined(__GNUC_GNU_INLINE__) #elif defined(__GNUC__) && defined(__GNUC_GNU_INLINE__)