From b8cd4396970beb04bc943f3462d4e307c14e8924 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 17 Mar 2015 08:19:05 +0000 Subject: [PATCH] Changed to using osgDB::ofstream to work around Windows build issue git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14794 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 6792aed7d..8cf0bd8f4 100644 --- a/src/osgPlugins/osgjs/json_stream +++ b/src/osgPlugins/osgjs/json_stream @@ -22,11 +22,12 @@ #include #include // control characters #include -#include #include #include #include +#include + using namespace std; // A simple class wrapping ofstream calls to enable generic cleaning of json data. @@ -35,7 +36,7 @@ using namespace std; // * disallow some control characters // * does not support inf or nan values -class json_stream : public std::ofstream { +class json_stream : public osgDB::ofstream { public: json_stream(const std::string& filename, bool strict=true) : _stream(filename.c_str()),