Commit 1059f9a9 authored by Earle Lowe's avatar Earle Lowe Committed by Brad King

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

In particular, fix the `isfinite` definition.
parent df0586d8
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment