jsoncpp: Provide 'isfinite' impl on more HP-UX versions (#15576)
Some versions of HP-UX do not define 'isfinite' or 'finite' in math.h for Itanium when preprocessing with C++, so we have to add the definition ourselves instead to map to the internal version.
This commit is contained in:
parent
12b9005d7c
commit
9217b678b3
|
@ -37,7 +37,12 @@
|
|||
// HP-UX
|
||||
#if defined(__hpux)
|
||||
# if !defined(isfinite)
|
||||
# define isfinite finite
|
||||
# if defined(__ia64) && !defined(finite)
|
||||
# define isfinite(x) ((sizeof(x) == sizeof(float) ? \
|
||||
_Isfinitef(x) : _Isfinite(x)))
|
||||
# else
|
||||
# define isfinite finite
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue