jsoncpp: Provide 'isfinite' implementation on older AIX and HP-UX

Newer AIX and HP-UX platforms provide 'isfinite' as a <math.h> macro.
Older versions do not, so add the definition if it is not provided.
This commit is contained in:
Ådne Hovda 2015-03-30 21:32:25 +02:00 committed by Brad King
parent 00214357ba
commit 7b1cdb0027
1 changed files with 14 additions and 0 deletions

View File

@ -27,6 +27,20 @@
# define isfinite finite
#endif
// AIX
#if defined(_AIX)
# if !defined(isfinite)
# define isfinite finite
# endif
#endif
// HP-UX
#if defined(__hpux)
# if !defined(isfinite)
# define isfinite finite
# endif
#endif
// Ancient glibc
#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ < 2
# if !defined(isfinite)