diff --git a/src/op_compiler.cc b/src/op_compiler.cc index 5aba2622..6013a7e8 100644 --- a/src/op_compiler.cc +++ b/src/op_compiler.cc @@ -261,6 +261,9 @@ void expand_macro(const string& macro, const vector& args, string& new_s string precompile(unordered_map defs, string src, unordered_map& macros) { string new_src; new_src.reserve(src.size()); + // dirty fix windows \r\n change line + for (auto& c : src) + if (c == '\r') c = '\n'; for (size_t i=0; i