mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 15:20:56 -06:00
jsoncpp: Fix compilation as C99 on Solaris
In C99 mode, Solaris variants may already define isfinite, so check for the existence first.
This commit is contained in:
committed by
Brad King
parent
6dad4c25b0
commit
75644dafe5
@@ -24,7 +24,9 @@
|
||||
// Solaris
|
||||
#if defined(__sun)
|
||||
# include <ieeefp.h>
|
||||
# define isfinite finite
|
||||
# if !defined(isfinite)
|
||||
# define isfinite finite
|
||||
# endif
|
||||
#endif
|
||||
|
||||
// AIX
|
||||
|
||||
Reference in New Issue
Block a user