From 7bde355f95a17dc2ef7f8907f4ef588ce72362e4 Mon Sep 17 00:00:00 2001 From: Neal Richardson Date: Sat, 13 Mar 2021 11:04:08 -0800 Subject: [PATCH] Add extra !defined(__cplusplus) for Solaris --- safe-math/safe-math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/safe-math/safe-math.h b/safe-math/safe-math.h index 670b539..d67a985 100644 --- a/safe-math/safe-math.h +++ b/safe-math/safe-math.h @@ -58,7 +58,7 @@ # define PSNIP_SAFE__FUNCTION PSNIP_SAFE__COMPILER_ATTRIBUTES static PSNIP_SAFE__INLINE #endif -#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +#if !defined(__cplusplus) && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L # define psnip_safe_bool _Bool #else # define psnip_safe_bool int