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:
parent
00214357ba
commit
7b1cdb0027
|
@ -27,6 +27,20 @@
|
||||||
# define isfinite finite
|
# define isfinite finite
|
||||||
#endif
|
#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
|
// Ancient glibc
|
||||||
#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ < 2
|
#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ < 2
|
||||||
# if !defined(isfinite)
|
# if !defined(isfinite)
|
||||||
|
|
Loading…
Reference in New Issue