]> git.mxchange.org Git - simgear.git/commitdiff
MSVC++ portability changes by Bernie Bright:
authorcurt <curt>
Tue, 2 Feb 1999 20:13:29 +0000 (20:13 +0000)
committerTim Moore <timoore@redhat.com>
Tue, 15 Sep 2009 16:31:32 +0000 (18:31 +0200)
Lib/Serial/serial.[ch]xx: Initial Windows support - incomplete.
Simulator/Astro/stars.cxx: typo? included <stdio> instead of <cstdio>
Simulator/Cockpit/hud.cxx: Added Standard headers
Simulator/Cockpit/panel.cxx: Redefinition of default parameter
Simulator/Flight/flight.cxx: Replaced cout with FG_LOG.  Deleted <stdio.h>
Simulator/Main/fg_init.cxx:
Simulator/Main/GLUTmain.cxx:
Simulator/Main/options.hxx: Shuffled <fg_serial.hxx> dependency
Simulator/Objects/material.hxx:
Simulator/Time/timestamp.hxx: VC++ friend kludge
Simulator/Scenery/tile.[ch]xx: Fixed using std::X declarations
Simulator/Main/views.hxx: Added a constant

Astro/sky.cxx
Astro/stars.cxx

index 0e9c32e408c1dbfdb6c3a9fb14ddff0ec5491636..9f3bb50c227326ddc1f4ee54636b3c01007dd540 100644 (file)
@@ -300,7 +300,7 @@ void fgSkyRender( void ) {
     xglBegin( GL_TRIANGLE_FAN );
     xglColor4fv(l->sky_color);
     xglVertex3f(0.0, 0.0, CENTER_ELEV);
-    for ( i = 11; i >= 0; i++ ) {
+    for ( i = 11; i >= 0; i-- ) {
        xglColor4fv( inner_color );
        xglVertex3fv( inner_vertex[i] );
     }
@@ -362,6 +362,22 @@ void fgSkyRender( void ) {
 
 
 // $Log$
+// Revision 1.20  1999/02/02 20:13:29  curt
+// MSVC++ portability changes by Bernie Bright:
+//
+// Lib/Serial/serial.[ch]xx: Initial Windows support - incomplete.
+// Simulator/Astro/stars.cxx: typo? included <stdio> instead of <cstdio>
+// Simulator/Cockpit/hud.cxx: Added Standard headers
+// Simulator/Cockpit/panel.cxx: Redefinition of default parameter
+// Simulator/Flight/flight.cxx: Replaced cout with FG_LOG.  Deleted <stdio.h>
+// Simulator/Main/fg_init.cxx:
+// Simulator/Main/GLUTmain.cxx:
+// Simulator/Main/options.hxx: Shuffled <fg_serial.hxx> dependency
+// Simulator/Objects/material.hxx:
+// Simulator/Time/timestamp.hxx: VC++ friend kludge
+// Simulator/Scenery/tile.[ch]xx: Fixed using std::X declarations
+// Simulator/Main/views.hxx: Added a constant
+//
 // Revision 1.19  1999/02/01 21:33:26  curt
 // Renamed FlightGear/Simulator/Flight to FlightGear/Simulator/FDM since
 // Jon accepted my offer to do this and thought it was a good idea.
index 118f3395079a6ed57bc7dba8314417c56fc230ea..8aae8157be4397d350e0e64589ad28cc78ac472d 100644 (file)
 #  include <windows.h>
 #endif
 
+#include "Include/compiler.h"
+#ifdef FG_HAVE_STD_INCLUDES
+#  include <cmath>
+#  include <cstdio>
+#  include <cstring>
+#  include <ctime>
+#else
+#  include <math.h>
+#  include <stdio.h>
+#  include <string.h>
+#  include <time.h>
+#endif
 
-#include <math.h>
-#include <stdio.h>
-#include <string.h>
 #include <string>
-#include <time.h>
 
 #include <GL/glut.h>
 #include <XGL/xgl.h>
 #include <Main/views.hxx>
 #include <Misc/stopwatch.hxx>
 #include <Time/fg_time.hxx>
+#include "Misc/stopwatch.hxx"
 
 #include "stars.hxx"
 
+FG_USING_STD(getline);
 
 #define EpochStart           (631065600)
 #define DaysSinceEpoch(secs) (((secs)-EpochStart)*(1.0/(24*3600)))
@@ -254,6 +264,22 @@ void fgStarsRender( void ) {
 
 
 // $Log$
+// Revision 1.26  1999/02/02 20:13:30  curt
+// MSVC++ portability changes by Bernie Bright:
+//
+// Lib/Serial/serial.[ch]xx: Initial Windows support - incomplete.
+// Simulator/Astro/stars.cxx: typo? included <stdio> instead of <cstdio>
+// Simulator/Cockpit/hud.cxx: Added Standard headers
+// Simulator/Cockpit/panel.cxx: Redefinition of default parameter
+// Simulator/Flight/flight.cxx: Replaced cout with FG_LOG.  Deleted <stdio.h>
+// Simulator/Main/fg_init.cxx:
+// Simulator/Main/GLUTmain.cxx:
+// Simulator/Main/options.hxx: Shuffled <fg_serial.hxx> dependency
+// Simulator/Objects/material.hxx:
+// Simulator/Time/timestamp.hxx: VC++ friend kludge
+// Simulator/Scenery/tile.[ch]xx: Fixed using std::X declarations
+// Simulator/Main/views.hxx: Added a constant
+//
 // Revision 1.25  1998/12/09 18:50:15  curt
 // Converted "class fgVIEW" to "class FGView" and updated to make data
 // members private and make required accessor functions.