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:
Joerg Sonnenberger 2015-09-12 16:34:12 +02:00 committed by Brad King
parent 6dad4c25b0
commit 75644dafe5
1 changed files with 3 additions and 1 deletions

View File

@ -24,7 +24,9 @@
// Solaris // Solaris
#if defined(__sun) #if defined(__sun)
# include <ieeefp.h> # include <ieeefp.h>
# if !defined(isfinite)
# define isfinite finite # define isfinite finite
# endif
#endif #endif
// AIX // AIX