summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-01-15 16:32:10 (GMT)
committerBrad King <brad.king@kitware.com>2015-01-15 16:39:20 (GMT)
commit7e310624b0973b8f0c529837010f164e486e784e (patch)
tree610fe45f16191bc805608f03b11f16877a4f062c /Utilities
parent4c49606598ab3089f0cec9be724ae2f3ab4c1ba3 (diff)
downloadCMake-7e310624b0973b8f0c529837010f164e486e784e.zip
CMake-7e310624b0973b8f0c529837010f164e486e784e.tar.gz
CMake-7e310624b0973b8f0c529837010f164e486e784e.tar.bz2
jsoncpp: Provide 'isfinite' implementation on Solaris
Solaris provides a 'finite' function in <ieeefp.h>.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmjsoncpp/src/lib_json/json_writer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp b/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp
index 0a42cc4..7f8e6f1 100644
--- a/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp
+++ b/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp
@@ -21,6 +21,12 @@
#define snprintf _snprintf
#endif
+// Solaris
+#if defined(__sun)
+# include <ieeefp.h>
+# define isfinite finite
+#endif
+
// Ancient glibc
#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ < 2
# if !defined(isfinite)