diff options
author | Brad King <brad.king@kitware.com> | 2015-04-01 17:19:34 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-04-01 17:19:34 (GMT) |
commit | 9d456ec71ae0dfc4db5260d256c6b9570d5dd8cb (patch) | |
tree | a9168875e79f97add400316ad1f5b6cc2a2d8bac | |
parent | aa508a52992990fd375253bed3a1e6c392722a56 (diff) | |
parent | 7b1cdb00279908cacabada92f8a53e4986465423 (diff) | |
download | CMake-9d456ec71ae0dfc4db5260d256c6b9570d5dd8cb.zip CMake-9d456ec71ae0dfc4db5260d256c6b9570d5dd8cb.tar.gz CMake-9d456ec71ae0dfc4db5260d256c6b9570d5dd8cb.tar.bz2 |
Merge topic 'jsoncpp-isfinite'
7b1cdb00 jsoncpp: Provide 'isfinite' implementation on older AIX and HP-UX
-rw-r--r-- | Utilities/cmjsoncpp/src/lib_json/json_writer.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp b/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp index 7f8e6f1..15222d6 100644 --- a/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp +++ b/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp @@ -27,6 +27,20 @@ # define isfinite finite #endif +// AIX +#if defined(_AIX) +# if !defined(isfinite) +# define isfinite finite +# endif +#endif + +// HP-UX +#if defined(__hpux) +# if !defined(isfinite) +# define isfinite finite +# endif +#endif + // Ancient glibc #if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ < 2 # if !defined(isfinite) |