Fixed #4848 (--include not working since the last 2 days)
This commit is contained in:
parent
c4763b9010
commit
75616786ef
|
@ -804,7 +804,7 @@ void Preprocessor::preprocess(std::istream &srcCodeStream, std::string &processe
|
||||||
|
|
||||||
processedFile = read(srcCodeStream, filename);
|
processedFile = read(srcCodeStream, filename);
|
||||||
|
|
||||||
if (_settings && _settings->_maxConfigs == 1U) {
|
if (_settings) {
|
||||||
for (std::list<std::string>::iterator it = _settings->userIncludes.begin();
|
for (std::list<std::string>::iterator it = _settings->userIncludes.begin();
|
||||||
it != _settings->userIncludes.end();
|
it != _settings->userIncludes.end();
|
||||||
++it) {
|
++it) {
|
||||||
|
@ -822,7 +822,7 @@ void Preprocessor::preprocess(std::istream &srcCodeStream, std::string &processe
|
||||||
);
|
);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
std::string fileData = read(fin, filename);
|
const std::string fileData = read(fin, filename);
|
||||||
|
|
||||||
fin.close();
|
fin.close();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue