From 3d144a0312624136a09dc5909a3b99c5b95e74a6 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 12 Mar 2015 13:37:08 +0000 Subject: [PATCH] Added using namespace std and removed the std:: prefixes before the std::isfinte and std::isinf function calls to avoid problems with Android builds against older NDK's. git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14780 16af8721-9629-0410-8352-f15c8da7e697 --- src/osgPlugins/osgjs/json_stream | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/osgPlugins/osgjs/json_stream b/src/osgPlugins/osgjs/json_stream index 45109d960..028dee84f 100644 --- a/src/osgPlugins/osgjs/json_stream +++ b/src/osgPlugins/osgjs/json_stream @@ -10,6 +10,7 @@ #include #include +using namespace std; // A simple class wrapping ofstream calls to enable generic cleaning of json data. // Especially 'standard' json should: @@ -66,11 +67,11 @@ class json_stream : public std::ofstream { } double to_valid_float(const double d) { - if(std::isfinite(d)) { + if(isfinite(d)) { return d; } else { - if(std::isinf(d)) { + if(isinf(d)) { return std::numeric_limits::max(); } // no much way to do better than replace invalid float NaN by 0