1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

jsoncpp: Fix compilation on HP-UX 11.31 ia64 with GCC 4.9.3

In particular, fix the `isfinite` definition.
This commit is contained in:
Earle Lowe
2019-07-02 18:20:41 -04:00
committed by Brad King
parent df0586d8d5
commit 1059f9a96d

View File

@@ -30,7 +30,7 @@
#define isfinite finite
#endif
#elif defined(__hpux)
#if !defined(isfinite)
#if !defined(isfinite) && !defined(__GNUC__)
#if defined(__ia64) && !defined(finite)
#define isfinite(x) ((sizeof(x) == sizeof(float) ? \
_Isfinitef(x) : _IsFinite(x)))
@@ -86,10 +86,11 @@
// HP-UX
#if defined(__hpux)
# if !defined(isfinite)
# if defined(__ia64) && !defined(finite)
# if defined(__ia64) && !defined(finite) && !defined(__GNUC__)
# define isfinite(x) ((sizeof(x) == sizeof(float) ? \
_Isfinitef(x) : _Isfinite(x)))
# else
# include <math.h>
# define isfinite finite
# endif
# endif