diff options
author | YamaArashi <shadow962@live.com> | 2016-04-30 04:19:00 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-04-30 04:19:00 -0700 |
commit | 1e6eb4f81296eca9c2f1f373c19716939f9b6be6 (patch) | |
tree | ffd770e2b6447120c513cf75ef059d588beff112 /tools/scaninc/scaninc.cpp | |
parent | 000e34c6f29655aa20034e390e4e2a6c1f7a1258 (diff) |
use compiled libgcc
Diffstat (limited to 'tools/scaninc/scaninc.cpp')
-rw-r--r-- | tools/scaninc/scaninc.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tools/scaninc/scaninc.cpp b/tools/scaninc/scaninc.cpp index 9a228180a..3bd6b81a5 100644 --- a/tools/scaninc/scaninc.cpp +++ b/tools/scaninc/scaninc.cpp @@ -218,12 +218,9 @@ std::string AsmFile::ReadPath() if (c == '\n') FATAL_INPUT_ERROR("unexpected end of line character in include string\n"); - if (c == '\\') { - c = GetChar(); - - if (c != '"') - FATAL_INPUT_ERROR("unknown escape \"\\%c\" in include string\n", c); - } + // Don't bother allowing any escape sequences. + if (c == '\\') + FATAL_INPUT_ERROR("unexpected escape '\\%c' in include string\n", c); length++; |