Merge topic 'hpux-isfinite'

9217b678 jsoncpp: Provide 'isfinite' impl on more HP-UX versions (#15576)
This commit is contained in:
Brad King 2015-05-27 09:23:03 -04:00 committed by CMake Topic Stage
commit d31f6290f1
1 changed files with 6 additions and 1 deletions

View File

@ -37,8 +37,13 @@
// 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