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; indentmatch = indent;
} }
} else if (line == "#endif") { } else if (line == "#endif") {
--indent; if (indent > 0)
if (indentmatch > indent) { --indent;
if (indentmatch > indent || indent == 0) {
indentmatch = indent; indentmatch = indent;
elseIsTrue = false; elseIsTrue = false;
suppressCurrentCodePath = false; suppressCurrentCodePath = false;