aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/compiler.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler.js b/src/compiler.js
index 2863afda..e589646b 100644
--- a/src/compiler.js
+++ b/src/compiler.js
@@ -201,6 +201,9 @@ var raw = read(ll_file);
if (FAKE_X86_FP80) {
raw = raw.replace(/x86_fp80/g, 'double');
}
+if (raw.search('\r\n') >= 0) {
+ raw = raw.replace(/\r\n/g, '\n'); // fix windows line endings
+}
var lines = raw.split('\n');
raw = null;