From 4f88655a79bb2d8f10bdce2841f427c0e27040bd Mon Sep 17 00:00:00 2001 From: shinny Date: Tue, 2 Jun 2020 14:51:57 -0400 Subject: update tools --- tools/preproc/asm_file.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tools/preproc/asm_file.cpp') diff --git a/tools/preproc/asm_file.cpp b/tools/preproc/asm_file.cpp index 383010a..7756cad 100644 --- a/tools/preproc/asm_file.cpp +++ b/tools/preproc/asm_file.cpp @@ -20,6 +20,7 @@ #include #include +#include #include "preproc.h" #include "asm_file.h" #include "char_util.h" @@ -475,9 +476,11 @@ void AsmFile::ExpectEmptyRestOfLine() m_lineStart = m_pos; m_lineNum++; } - else if (m_buffer[m_pos] == '\r') + else if (m_buffer[m_pos] == '\r' && m_buffer[m_pos + 1] == '\n') { - RaiseError("only Unix-style LF newlines are supported"); + m_pos += 2; + m_lineStart = m_pos; + m_lineNum++; } else { -- cgit v1.2.3