summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-04-01 17:19:34 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-04-01 17:19:34 (GMT)
commit9d456ec71ae0dfc4db5260d256c6b9570d5dd8cb (patch)
treea9168875e79f97add400316ad1f5b6cc2a2d8bac
parentaa508a52992990fd375253bed3a1e6c392722a56 (diff)
parent7b1cdb00279908cacabada92f8a53e4986465423 (diff)
downloadCMake-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.cpp14
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)