From: curt Date: Thu, 6 May 1999 19:38:28 +0000 (+0000) Subject: Added a getline() fix for borland. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e875ce407f89aa084057f083dad135d28f4f1840;p=flightgear.git Added a getline() fix for borland. --- 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,