]> git.mxchange.org Git - flightgear.git/commitdiff
Added a getline() fix for borland.
authorcurt <curt>
Thu, 6 May 1999 19:38:28 +0000 (19:38 +0000)
committercurt <curt>
Thu, 6 May 1999 19:38:28 +0000 (19:38 +0000)
Simulator/Main/options.cxx

index 1cae1dccbe21d67929b64230a16e71fafd6cf52c..46aed141447259e310ea32196b1007ed70dcc009 100644 (file)
@@ -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,