diff --git a/src/osgDB/OutputStream.cpp b/src/osgDB/OutputStream.cpp index 993f3c209..4aac1ca6e 100644 --- a/src/osgDB/OutputStream.cpp +++ b/src/osgDB/OutputStream.cpp @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include @@ -559,7 +559,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 );