]> git.mxchange.org Git - flightgear.git/commitdiff
MSVC++ portability changes by Bernie Bright:
authorcurt <curt>
Tue, 2 Feb 1999 20:13:29 +0000 (20:13 +0000)
committercurt <curt>
Tue, 2 Feb 1999 20:13:29 +0000 (20:13 +0000)
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

12 files changed:
Astro/sky.cxx
Astro/stars.cxx
Cockpit/hud.cxx
Cockpit/panel.cxx
Main/GLUTmain.cxx
Main/fg_init.cxx
Main/options.hxx
Main/views.hxx
Objects/material.hxx
Scenery/tile.cxx
Scenery/tile.hxx
Time/timestamp.hxx

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.
index 007e0160b9f1fdbc01b8a73144646aada591fb52..6c242f3876be11e9d430236236dd03f4ed044166 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 
-#ifdef HAVE_VALUES_H
-#  include <values.h>  // for MAXINT
-#endif
-
 #include <Aircraft/aircraft.hxx>
 #include <Debug/logstream.hxx>
 #include <Include/fg_constants.h>
@@ -69,7 +65,10 @@ static char units[5];
 // They should eventually be member functions of the aircraft.
 //
 
-deque< instr_item * > HUD_deque;
+typedef deque< instr_item * > HudContainerType;
+typedef HudContainerType::iterator HudIterator;
+
+HudContainerType HUD_deque;
 
 class locRECT {
   public:
@@ -534,7 +533,6 @@ int fgHUDInit( fgAIRCRAFT * /* current_aircraft */ )
 
 int fgHUDInit2( fgAIRCRAFT * /* current_aircraft */ )
 {
-    instr_item *HIptr;
     int index;
 
     FG_LOG( FG_COCKPIT, FG_INFO, "Initializing current aircraft HUD" );
@@ -769,8 +767,8 @@ void fgUpdateHUD( void ) {
 
   glLineWidth(1);
 
-  deque < instr_item * > :: iterator current = HUD_deque.begin();
-  deque < instr_item * > :: iterator last = HUD_deque.end();
+  HudIterator current = HUD_deque.begin();
+  HudIterator last = HUD_deque.end();
 
   for ( ; current != last; ++current ) {
     pHUDInstr = *current;
@@ -840,6 +838,22 @@ void fgUpdateHUD( void ) {
 }
 
 // $Log$
+// Revision 1.31  1999/02/02 20:13:31  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.30  1999/01/27 04:47:52  curt
 // Make lower end of altitude = -500 so the altimeter is guaged below zero (such
 // as in death valley.)
index 94ab2336001af1350f22de4527090b7e732b2ba1..166bec3774fa60120bed4c02046b28eab09e18d8 100644 (file)
 #include <GL/glut.h>
 #include <XGL/xgl.h>
 
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+#include "Include/compiler.h"
+#ifdef FG_HAVE_STD_INCLUDES
+#  include <cstdlib>
+#  include <cstdio>
+#  include <cstring>
+#  include <cmath>
+#else
+#  include <stdlib.h>
+#  include <stdio.h>
+#  include <string.h>
+#  include <math.h>
+#endif
+
 #include <string>
-#include <math.h>
+FG_USING_STD(string);
 
 #include <Aircraft/aircraft.hxx>
 #include <Debug/logstream.hxx>
@@ -302,7 +312,7 @@ static IMAGE *ImageLoad(char *fileName)
       exit(-1);
     }
 
-  ImageGetRawData(image, final->data);
+  ImageGetRawData(image, (char*)final->data);
   ImageClose(image);
   return final;
 }
@@ -876,7 +886,10 @@ float UpdatePointer(Pointer pointer){
 // fgEraseArea - 'Erases' a drawn Polygon by overlaying it with a textured 
 //                 area. Shall be a method of a panel class once.
 
-void fgEraseArea(GLfloat *array, int NumVerti, GLfloat texXPos,                                  GLfloat texYPos, GLfloat XPos, GLfloat YPos,                                    int Texid, float ScaleFactor = 1){
+void fgEraseArea(GLfloat *array, int NumVerti, GLfloat texXPos,
+                GLfloat texYPos, GLfloat XPos, GLfloat YPos,
+                int Texid, float ScaleFactor)
+{
 int i, j;
 int n;
 float a;
@@ -1066,6 +1079,22 @@ printf("         %f %f %f %f \n", mvmatrix[12], mvmatrix[13], mvmatrix[14], mvma
 }
 
 // $Log$
+// Revision 1.14  1999/02/02 20:13:33  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.13  1999/01/07 19:25:53  curt
 // Updates from Friedemann Reinhard.
 //
@@ -1094,4 +1123,3 @@ printf("         %f %f %f %f \n", mvmatrix[12], mvmatrix[13], mvmatrix[14], mvma
 // Incorporated Friedemann Reinhard's <mpt218@faupt212.physik.uni-erlangen.de>
 // first pass at an isntrument panel.
 //
-
index 99f3508f91f86e8c0035e7b88b5018e0976ee8ae..187ad17c76279ecf6259bdb854d2490c2697f06c 100644 (file)
@@ -85,6 +85,7 @@
 #include "options.hxx"
 #include "splash.hxx"
 #include "views.hxx"
+#include "fg_serial.hxx"
 
 
 // This is a record containing a bit of global housekeeping information
@@ -739,7 +740,7 @@ static void fgIdleFunction ( void ) {
 
        audio_sched = new slScheduler ( 8000 );
        audio_mixer = new smMixer;
-       audio_mixer -> setMasterVolume ( 50 ) ;  /* 80% of max volume. */
+       audio_mixer -> setMasterVolume ( 80 ) ;  /* 80% of max volume. */
        audio_sched -> setSafetyMargin ( 1.0 ) ;
        string slfile = current_options.get_fg_root() + "/Sounds/wasp.wav";
 
@@ -968,8 +969,8 @@ int main( int argc, char **argv ) {
        // Something must have gone horribly wrong with the command
        // line parsing or maybe the user just requested help ... :-)
        current_options.usage();
-       // FG_LOG( FG_GENERAL, FG_ALERT, "\nExiting ...");
-       cout << endl << "Exiting ..." << endl;
+       FG_LOG( FG_GENERAL, FG_ALERT, "\nExiting ...");
+       // cout << endl << "Exiting ..." << endl;
        exit(-1);
     }
     
@@ -1006,6 +1007,22 @@ int main( int argc, char **argv ) {
 
 
 // $Log$
+// Revision 1.84  1999/02/02 20:13:34  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.83  1999/01/27 04:49:17  curt
 // Game mode fixes from Norman Vine.
 // Initial altitude setting tweaks and fixes (especially for when starting
index 3ffaff47c415a0bba057474f4d419aeed5118651..0f4247635ed5234c912a049695c19baa3e803f43 100644 (file)
@@ -65,6 +65,7 @@
 #include "fg_init.hxx"
 #include "options.hxx"
 #include "views.hxx"
+#include "fg_serial.hxx"
 
 
 extern const char *default_root;
@@ -391,6 +392,22 @@ int fgInitSubsystems( void )
 
 
 // $Log$
+// Revision 1.65  1999/02/02 20:13:36  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.64  1999/02/01 21:15:43  curt
 // Removed unused variables.
 //
index 2d845a9794154462932aab47fab41b2d28e5d4e8..67ba5e2d5e95f97e38626c27076a88df1831d357 100644 (file)
 #include STL_STRING
 FG_USING_STD(string);
 
-#include <vector>                                                               
-#include "Include/fg_stl_config.h"                                              
-
-FG_USING_NAMESPACE(std);
-
-#include "fg_serial.hxx"
+#include <vector>
+#include "Include/compiler.h"
+FG_USING_STD(vector);
+FG_USING_STD(string);
+// #include "fg_serial.hxx"
 
 
 typedef vector < string > str_container;
@@ -246,6 +245,22 @@ extern fgOPTIONS current_options;
 
 
 // $Log$
+// Revision 1.26  1999/02/02 20:13:37  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  1999/01/19 20:57:06  curt
 // MacOS portability changes contributed by "Robert Puyol" <puyol@abvent.fr>
 //
index 60520ad6931999e616592e6583a7f00c7d5933fc..2808f4f9dda4668211a1002d36a033861ccb9046 100644 (file)
@@ -47,6 +47,8 @@
 // Define a structure containing view information
 class FGView {
 
+public:
+
     // the current offset from forward for viewing
     double view_offset;
 
@@ -218,7 +220,7 @@ public:
     inline double *get_surface_south() { return surface_south; }
     inline double *get_surface_east() { return surface_east; }
     inline double *get_local_up() { return local_up; }
-    inline MAT3mat *get_WORLD_TO_EYE() const { return &WORLD_TO_EYE; }
+    inline const MAT3mat *get_WORLD_TO_EYE() const { return &WORLD_TO_EYE; }
     inline GLdouble *get_MODEL_VIEW() { return MODEL_VIEW; }
 };
 
@@ -230,6 +232,22 @@ extern FGView current_view;
 
 
 // $Log$
+// Revision 1.20  1999/02/02 20:13:38  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:36  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 d8b4c9705ef5ead6db28dcaa1a0cac509dc63e79..9e8b1b1d38793ce5e9a8738892b31ef481888b5f 100644 (file)
 #include <GL/glut.h>
 #include <XGL/xgl.h>
 
-#if defined ( __sun__ )
-extern "C" void *memmove(void *, const void *, size_t);
-extern "C" void *memset(void *, int, size_t);
-#endif
-
 #include <string>        // Standard C++ string library
 #include <map>           // STL associative "array"
 #include <vector>        // STL "array"
 
-#ifdef NEEDNAMESPACESTD
-using namespace std;
-#endif
+#include "Include/compiler.h"
+FG_USING_STD(string);
+FG_USING_STD(map);
+FG_USING_STD(vector);
+FG_USING_STD(less);
 
 // forward decl.
 class fgFRAGMENT;
@@ -66,6 +63,9 @@ typedef frag_list_type::const_iterator frag_list_const_iterator;
 
 // #define FG_MAX_MATERIAL_FRAGS 800
 
+// MSVC++ 6.0 kuldge - Need forward declaration of friends.
+class fgMATERIAL;
+istream& operator >> ( istream& in, fgMATERIAL& m );
 
 // Material property class
 class fgMATERIAL {
@@ -117,7 +117,6 @@ public:
     friend istream& operator >> ( istream& in, fgMATERIAL& m );
 };
 
-istream& operator >> ( istream& in, fgMATERIAL& m );
 
 // Material management class
 class fgMATERIAL_MGR {
@@ -170,6 +169,22 @@ extern fgMATERIAL_MGR material_mgr;
 
 
 // $Log$
+// Revision 1.6  1999/02/02 20:13:39  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.5  1998/10/12 23:49:18  curt
 // Changes from NHV to make the code more dynamic with fewer hard coded limits.
 //
index 4efe7069774ec92b70ba48f77471eea72608511a..14edd51e3a36d63f245462ee9c2401245088cd55 100644 (file)
 // (Log is kept at end of this file)
 
 
-// #include <Include/fg_constants.h>
-// #include <Math/mat3.h>
+#include "Include/compiler.h"
+#include STL_FUNCTIONAL
+#include STL_ALGORITHM
+FG_USING_STD(for_each);
+FG_USING_STD(mem_fun_ref);
+
 #include <Debug/logstream.hxx>
 #include <Scenery/tile.hxx>
 #include "Bucket/bucketutils.hxx"
@@ -61,6 +65,22 @@ fgTILE::release_fragments()
 
 
 // $Log$
+// Revision 1.14  1999/02/02 20:13:40  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.13  1998/11/09 23:40:46  curt
 // Bernie Bright <bbright@c031.aone.net.au> writes:
 // I've made some changes to the Scenery handling.  Basically just tidy ups.
index 63f41143312329aa79feac4665f88452bbf69ed5..32d749b7a07078734da492219ac52afefa2bcc25 100644 (file)
 #include <string>
 
 #include "Include/compiler.h"
-#include STL_FUNCTIONAL
-#include STL_ALGORITHM
-FG_USING_NAMESPACE(std);
-// FG_USING_STD(string);
-// FG_USING_STD(vector);
+FG_USING_STD(string);
+FG_USING_STD(vector);
 
 #include <Bucket/bucketutils.h>
 #include <Math/mat3.h>
@@ -160,6 +157,22 @@ private:
 
 
 // $Log$
+// Revision 1.23  1999/02/02 20:13:41  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.22  1998/12/03 01:18:16  curt
 // Converted fgFLIGHT to a class.
 // Tweaks for Sun Portability.
index b20b19f6c74dd9b83843ba250bea312b52318715..dbd9acddced10ca45fdaf5ffe14aeb2d11ec3c7d 100644 (file)
 #  include <mmsystem.h>
 #endif
 
+// MSVC++ 6.0 kuldge - Need forward declaration of friends.
+class FGTimeStamp;
+FGTimeStamp operator + (const FGTimeStamp& t, const long& m);
+long operator - (const FGTimeStamp& a, const FGTimeStamp& b);
 
 class FGTimeStamp {
 
@@ -163,6 +167,22 @@ inline long operator - (const FGTimeStamp& a, const FGTimeStamp& b)
 
 
 // $Log$
+// Revision 1.5  1999/02/02 20:13:43  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.4  1999/01/09 13:37:46  curt
 // Convert fgTIMESTAMP to FGTimeStamp which holds usec instead of ms.
 //