From e875ce407f89aa084057f083dad135d28f4f1840 Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 6 May 1999 19:38:28 +0000 Subject: [PATCH] Added a getline() fix for borland. --- Simulator/Main/options.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Simulator/Main/options.cxx b/Simulator/Main/options.cxx index 1cae1dccb..46aed1414 100644 --- a/Simulator/Main/options.cxx +++ b/Simulator/Main/options.cxx @@ -672,7 +672,12 @@ int fgOPTIONS::parse_config_file( const string& path ) { while ( !in.eof() ) { string line; + +#ifdef GETLINE_NEEDS_TERMINATOR + getline( in, line, '\n' ); +#else getline( in, line ); +#endif if ( parse_option( line ) == FG_OPTIONS_ERROR ) { FG_LOG( FG_GENERAL, FG_ALERT, -- 2.39.5