From 75644dafe54c21902f14cfe58cb8338b553b69d8 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Sat, 12 Sep 2015 16:34:12 +0200 Subject: jsoncpp: Fix compilation as C99 on Solaris In C99 mode, Solaris variants may already define isfinite, so check for the existence first. --- Utilities/cmjsoncpp/src/lib_json/json_writer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp b/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp index b64cdb0..e3f4e53 100644 --- a/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp +++ b/Utilities/cmjsoncpp/src/lib_json/json_writer.cpp @@ -24,7 +24,9 @@ // Solaris #if defined(__sun) # include -# define isfinite finite +# if !defined(isfinite) +# define isfinite finite +# endif #endif // AIX -- cgit v0.12