From f1f39b5fcf0065e77d3dd835680e2e0f632867dd Mon Sep 17 00:00:00 2001 From: michel <michel@ac1d8469-bf42-47a9-8791-bf33cf982152> Date: Fri, 8 Feb 2008 17:42:09 +0000 Subject: [PATCH] preprocessor: opening file in binary mode solves mysterious bug with CR LF terminated lines under Cygwin git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1700 ac1d8469-bf42-47a9-8791-bf33cf982152 --- macro/MacroDriver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macro/MacroDriver.cc b/macro/MacroDriver.cc index e2ada27c..0dba5929 100644 --- a/macro/MacroDriver.cc +++ b/macro/MacroDriver.cc @@ -35,7 +35,7 @@ MacroDriver::parse(const string &f, ostream &out) { file = f; - ifstream in(f.c_str()); + ifstream in(f.c_str(),ifstream::binary); lexer = new MacroFlex(&in, &out); lexer->set_debug(trace_scanning); -- GitLab