summaryrefslogtreecommitdiff
path: root/tools/preproc
diff options
context:
space:
mode:
Diffstat (limited to 'tools/preproc')
-rw-r--r--tools/preproc/Makefile2
-rw-r--r--tools/preproc/asm_file.cpp6
-rwxr-xr-xtools/preproc/preproc.exebin908180 -> 908692 bytes
3 files changed, 5 insertions, 3 deletions
diff --git a/tools/preproc/Makefile b/tools/preproc/Makefile
index 63dedda..8c48afe 100644
--- a/tools/preproc/Makefile
+++ b/tools/preproc/Makefile
@@ -1,4 +1,4 @@
-CXX := g++
+CXX ?= g++
CXXFLAGS := -std=c++11 -O2 -Wall -Wno-switch -Werror
diff --git a/tools/preproc/asm_file.cpp b/tools/preproc/asm_file.cpp
index 383010a..98805c9 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
{
diff --git a/tools/preproc/preproc.exe b/tools/preproc/preproc.exe
index 92f0f63..4ed5198 100755
--- a/tools/preproc/preproc.exe
+++ b/tools/preproc/preproc.exe
Binary files differ