diff options
author | garak <garakmon@gmail.com> | 2019-08-29 10:02:56 -0400 |
---|---|---|
committer | huderlem <huderlem@gmail.com> | 2019-08-29 16:37:32 -0500 |
commit | b420b98d633f16b0905295345cb671b2834b956e (patch) | |
tree | ac3cf13a50ad5ac6f8e165d06a277ab493e0bd39 /tools/preproc/asm_file.cpp | |
parent | ad941680d85d1b280786f5c4a7a246f4d87dd5e9 (diff) |
allow CRLF line endings in asm files for preproc
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 { |