From 1e6eb4f81296eca9c2f1f373c19716939f9b6be6 Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Sat, 30 Apr 2016 04:19:00 -0700 Subject: use compiled libgcc --- tools/scaninc/scaninc.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'tools/scaninc/scaninc.cpp') 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++; -- cgit v1.2.3