preprocessor: fix bug introduced in 1ba04976aac043deca38edb03e0dfc866dfadd67. #1039
parent
9f90d6ae8c
commit
38443b0775
|
@ -401,7 +401,8 @@ MacroFlex::create_include_context(string *filename, Macro::parser::location_type
|
||||||
dirs << "." << FILESEP << endl;
|
dirs << "." << FILESEP << endl;
|
||||||
for (vector<string>::const_iterator it = path.begin(); it != path.end(); it++)
|
for (vector<string>::const_iterator it = path.begin(); it != path.end(); it++)
|
||||||
{
|
{
|
||||||
input = new ifstream(it->c_str() + FILESEP + filename->c_str(), ios::binary);
|
string testfile = *it + FILESEP + *filename;
|
||||||
|
input = new ifstream(testfile.c_str(), ios::binary);
|
||||||
if (input->good())
|
if (input->good())
|
||||||
break;
|
break;
|
||||||
dirs << *it << endl;
|
dirs << *it << endl;
|
||||||
|
|
Loading…
Reference in New Issue