diff --git a/src/osgDB/OutputStream.cpp b/src/osgDB/OutputStream.cpp index 4132ff93f..41e72ae55 100644 --- a/src/osgDB/OutputStream.cpp +++ b/src/osgDB/OutputStream.cpp @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include @@ -558,7 +558,7 @@ void OutputStream::writeImage( const osg::Image* img ) if ( isBinary() ) { std::string fullPath = osgDB::findDataFile( img->getFileName() ); - std::ifstream infile( fullPath.c_str(), std::ios::in|std::ios::binary ); + osgDB::ifstream infile( fullPath.c_str(), std::ios::in|std::ios::binary ); if ( infile ) { infile.seekg( 0, std::ios::end );