Skip to content

Commit

Permalink
Add extra !defined(__cplusplus) for Solaris
Browse files Browse the repository at this point in the history
  • Loading branch information
nealrichardson authored and nemequ committed Mar 15, 2021
1 parent ed26cfb commit 7bde355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion safe-math/safe-math.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7bde355

Please sign in to comment.