diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2019-10-02 11:48:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-02 11:48:20 -0400 |
commit | e97f37077c793a388e3a98c13f09846839e80b22 (patch) | |
tree | 821ca6bd8d7db65ecd0f8a092b4acea13e00f7f4 /tools/preproc/asm_file.cpp | |
parent | bbd177fa20a3f53a4815061c524a14e959de6783 (diff) | |
parent | 1bd678656c735bbeb603ccb80367c7a85f820f61 (diff) |
Merge branch 'master' into emerald_diff
Diffstat (limited to 'tools/preproc/asm_file.cpp')
-rw-r--r-- | tools/preproc/asm_file.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/preproc/asm_file.cpp b/tools/preproc/asm_file.cpp index 383010aa3..98805c952 100644 --- a/tools/preproc/asm_file.cpp +++ b/tools/preproc/asm_file.cpp @@ -475,9 +475,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 { |