Merge topic 'hpux-isfinite'
9217b678 jsoncpp: Provide 'isfinite' impl on more HP-UX versions (#15576)
This commit is contained in:
commit
d31f6290f1
@ -37,9 +37,14 @@
|
|||||||
// HP-UX
|
// HP-UX
|
||||||
#if defined(__hpux)
|
#if defined(__hpux)
|
||||||
# if !defined(isfinite)
|
# if !defined(isfinite)
|
||||||
|
# if defined(__ia64) && !defined(finite)
|
||||||
|
# define isfinite(x) ((sizeof(x) == sizeof(float) ? \
|
||||||
|
_Isfinitef(x) : _Isfinite(x)))
|
||||||
|
# else
|
||||||
# define isfinite finite
|
# define isfinite finite
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
// Ancient glibc
|
// Ancient glibc
|
||||||
#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ < 2
|
#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ < 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user