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()),