Fixed #3405 ((error) Invalid number of character ({) when these macros are def ined: 'WIN32'.)

This commit is contained in:
Daniel Marjamäki 2011-12-12 19:35:25 +01:00
parent 5eb8ab70e3
commit c8f497a9b3
1 changed files with 3 additions and 2 deletions

View File

@ -1838,8 +1838,9 @@ std::string Preprocessor::handleIncludes(const std::string &code, const std::str
indentmatch = indent;
}
} else if (line == "#endif") {
--indent;
if (indentmatch > indent) {
if (indent > 0)
--indent;
if (indentmatch > indent || indent == 0) {
indentmatch = indent;
elseIsTrue = false;
suppressCurrentCodePath = false;