added __cplusplus when determining inline availability
This commit is contained in:
		| @ -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__) | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user