From Michael Platings, Converted std::fstream/ifstream/ofstream to osgDB::fstream/ifstream/ofstream and
fopen to osgDB::fopen to facilitate support for wide character filenames using UT8 encoding.
This commit is contained in:
@@ -221,9 +221,10 @@
|
||||
#define SUPPORT_CPP 1
|
||||
#endif
|
||||
|
||||
#include <osgDB/fstream>
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
|
||||
#include "FlexLexer.h"
|
||||
@@ -2283,7 +2284,7 @@ bool CameraConfig::parseFile( const std::string &file )
|
||||
else
|
||||
#endif
|
||||
{
|
||||
std::ifstream ifs(fileName.c_str());
|
||||
osgDB::ifstream ifs(fileName.c_str());
|
||||
flexer = new yyFlexLexer(&ifs);
|
||||
cfg = this;
|
||||
retval = ConfigParser_parse() == 0 ? true : false;
|
||||
|
||||
Reference in New Issue
Block a user