diff options
author | Brad King <brad.king@kitware.com> | 2015-05-27 13:23:03 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-05-27 13:23:03 (GMT) |
commit | d31f6290f131b43be2e9dd30132ee9cd3e0e65e0 (patch) | |
tree | 6ffe3ff03705cf6fae6d617742c14c073e3a84fa | |
parent | c12fc3573bd86122279467e662b7ec58c72b5ffa (diff) | |
parent | 9217b678b305d7df7471ba476a81bf28961fdfa3 (diff) | |
download | CMake-d31f6290f131b43be2e9dd30132ee9cd3e0e65e0.zip CMake-d31f6290f131b43be2e9dd30132ee9cd3e0e65e0.tar.gz CMake-d31f6290f131b43be2e9dd30132ee9cd3e0e65e0.tar.bz2 |
Merge topic 'hpux-isfinite'
9217b678 jsoncpp: Provide 'isfinite' impl on more HP-UX versions (#15576)
-rw-r--r-- | Utilities/cmjsoncpp/src/lib_json/json_writer.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp b/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp index 15222d6..b64cdb0 100644 --- a/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp +++ b/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp @@ -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 |