]> git.mxchange.org Git - flightgear.git/commitdiff
MacOS portability changes contributed by "Robert Puyol" <puyol@abvent.fr>
authorcurt <curt>
Tue, 19 Jan 1999 20:57:00 +0000 (20:57 +0000)
committercurt <curt>
Tue, 19 Jan 1999 20:57:00 +0000 (20:57 +0000)
Astro/stars.hxx
LaRCsim/ls_interface.c
Main/GLUTmain.cxx
Main/fg_serial.cxx
Main/options.cxx
Main/options.hxx
Time/fg_time.cxx

index d2e70261b5fefec251919c393d89908bdf1b3428..212718d7eda46e70b282b9a84e232bb0cde5cba5 100644 (file)
@@ -40,7 +40,7 @@ int fgStarsInit( void );
 // Draw the Stars
 void fgStarsRender( void );
 
-extern struct OrbElements pltOrbElements[9];
+// [no longer used?] extern struct OrbElements pltOrbElements[9];
 extern fgTIME cur_time_params;
 
 
@@ -48,6 +48,9 @@ extern fgTIME cur_time_params;
 
 
 // $Log$
+// Revision 1.8  1999/01/19 20:57:00  curt
+// MacOS portability changes contributed by "Robert Puyol" <puyol@abvent.fr>
+//
 // Revision 1.7  1998/09/24 15:36:20  curt
 // Converted to c++ style comments.
 //
index dc311d87f151c39c9fe290521bf3066bee2af1fa..09eda1ed1f448f8238174fc13e98ec7809deb995 100644 (file)
@@ -222,7 +222,7 @@ $Original log: LaRCsim.c,v $
 
 --------------------------------------------------------------------------*/
 
-#include <sys/types.h>
+/* #include <sys/types.h> */
 /* #include <sys/stat.h> */
 #include <stdlib.h>
 #include <stdio.h>
@@ -574,6 +574,9 @@ int ls_ForceAltitude(double alt_feet) {
 /* Flight Gear Modification Log
  *
  * $Log$
+ * Revision 1.25  1999/01/19 20:57:02  curt
+ * MacOS portability changes contributed by "Robert Puyol" <puyol@abvent.fr>
+ *
  * Revision 1.24  1998/12/14 13:27:47  curt
  * Removed some old, outdated, no longer needed code.
  *
index f1fba8050f92c08dde5f8b3c7267a8d440e41400..83a73f42a1b5e830e49ba86e3a9625aef3f97c07 100644 (file)
@@ -42,7 +42,9 @@
 #   include <stdlib.h>
 #endif
 
-#include <sys/stat.h> /* for stat() */
+#ifdef HAVE_SYS_STAT_H
+#  include <sys/stat.h> /* for stat() */
+#endif
 
 #ifdef HAVE_UNISTD_H
 #  include <unistd.h>    /* for stat() */
@@ -1000,6 +1002,9 @@ int main( int argc, char **argv ) {
 
 
 // $Log$
+// Revision 1.81  1999/01/19 20:57:03  curt
+// MacOS portability changes contributed by "Robert Puyol" <puyol@abvent.fr>
+//
 // Revision 1.80  1999/01/09 13:37:40  curt
 // Convert fgTIMESTAMP to FGTimeStamp which holds usec instead of ms.
 //
index 601feb6c38d7f351ff69b574c6b775557a1515d3..cfa7d6868a37430ce2bb1445999bfb481c1a03a5 100644 (file)
 // (Log is kept at end of this file)
 
 
-#include <stdlib.h>   // atoi()
+#include <Include/compiler.h>
 
-#include <string>
+#ifdef FG_HAVE_STD_INCLUDES
+#  include <cstdlib>    // atoi()
+#else
+#  include <stdlib.h>   // atoi()
+#endif
+
+#include STL_STRING
+#include STL_IOSTREAM                                           
 #include <vector>                                                               
 #include "Include/fg_stl_config.h"                                              
 
-#ifdef NEEDNAMESPACESTD                                                         
-using namespace std;                                                            
-#endif                                                                          
+FG_USING_NAMESPACE(std);
 
 #include <Aircraft/aircraft.hxx>
 #include <Debug/logstream.hxx>
@@ -451,6 +456,9 @@ void fgSerialProcess() {
 
 
 // $Log$
+// Revision 1.8  1999/01/19 20:57:04  curt
+// MacOS portability changes contributed by "Robert Puyol" <puyol@abvent.fr>
+//
 // Revision 1.7  1998/12/05 15:54:21  curt
 // Renamed class fgFLIGHT to class FGState as per request by JSB.
 //
index 3d026eb9d79fbb569f4ed0685ae87bd00aead782..a963a4ff5925bb31909df97de07729043f33ab2b 100644 (file)
@@ -1,4 +1,3 @@
-//
 // options.cxx -- class to handle command line options
 //
 // Written by Curtis Olson, started April 1998.
@@ -630,6 +629,9 @@ fgOPTIONS::~fgOPTIONS( void ) {
 
 
 // $Log$
+// Revision 1.37  1999/01/19 20:57:05  curt
+// MacOS portability changes contributed by "Robert Puyol" <puyol@abvent.fr>
+//
 // Revision 1.36  1999/01/07 20:25:10  curt
 // Updated struct fgGENERAL to class FGGeneral.
 //
index 994068b250bdcf4ea56a4fefccf80ba7016bb020..2d845a9794154462932aab47fab41b2d28e5d4e8 100644 (file)
@@ -34,6 +34,8 @@
 #  include <config.h>
 #endif
 
+#include <Include/compiler.h>
+
 #ifdef HAVE_WINDOWS_H
 #  include <windows.h>
 #endif
 #include <GL/glut.h>
 #include <XGL/xgl.h>
 
-#include <string>
-#include <Include/compiler.h>
+#include STL_STRING
 FG_USING_STD(string);
 
 #include <vector>                                                               
 #include "Include/fg_stl_config.h"                                              
 
-#ifdef NEEDNAMESPACESTD                                                         
-using namespace std;                                                            
-#endif                                                                          
+FG_USING_NAMESPACE(std);
 
 #include "fg_serial.hxx"
 
@@ -247,6 +246,9 @@ extern fgOPTIONS current_options;
 
 
 // $Log$
+// Revision 1.25  1999/01/19 20:57:06  curt
+// MacOS portability changes contributed by "Robert Puyol" <puyol@abvent.fr>
+//
 // Revision 1.24  1998/11/25 01:34:01  curt
 // Support for an arbitrary number of serial ports.
 //
index 24d130f13a05fe5578fcb81004cd32043b5ad316..c37c287520f2c126f7b9d7574a1df7defa15d500 100644 (file)
@@ -28,6 +28,7 @@
 #endif
 
 #include "Include/compiler.h"
+
 #ifdef FG_HAVE_STD_INCLUDES
 #  include <cmath>
 #  include <cstdio>
@@ -398,6 +399,9 @@ void fgTimeUpdate(FGState *f, fgTIME *t) {
 
 
 // $Log$
+// Revision 1.29  1999/01/19 20:57:08  curt
+// MacOS portability changes contributed by "Robert Puyol" <puyol@abvent.fr>
+//
 // Revision 1.28  1999/01/07 20:25:34  curt
 // Portability changes and updates from Bernie Bright.
 //