]> git.mxchange.org Git - flightgear.git/commitdiff
Borland portability tweaks.
authorcurt <curt>
Mon, 23 Nov 1998 21:48:09 +0000 (21:48 +0000)
committercurt <curt>
Mon, 23 Nov 1998 21:48:09 +0000 (21:48 +0000)
21 files changed:
Airports/genapt.cxx
Airports/genapt.hxx
Astro/celestialBody.cxx
Astro/celestialBody.hxx
Astro/jupiter.cxx
Astro/mars.cxx
Astro/mercury.cxx
Astro/moon.cxx
Astro/neptune.cxx
Astro/saturn.cxx
Astro/solarsystem.cxx
Astro/star.cxx
Astro/stars.cxx
Astro/uranus.cxx
Astro/venus.cxx
Cockpit/hud.cxx
Main/options.cxx
Main/options.hxx
Time/event.cxx
Time/light.cxx
Weather/weather.cxx

index 4ef94cf70dbe394c57914fcfe54681ad4e3d20a0..ba5a7ccf1d1957d0b27e3da0066a947cee6e0cb8 100644 (file)
 using namespace std;
 #endif
 
+#ifdef __BORLANDC__
+#  define exception c_exception
+#endif
+#include <math.h>
+
 #include <Debug/logstream.hxx>
 // #include <Include/fg_types.h>
 #include <Math/fg_geodesy.hxx>
@@ -285,6 +290,9 @@ fgAptGenerate(const string& path, fgTILE *tile)
 
 
 // $Log$
+// Revision 1.11  1998/11/23 21:48:09  curt
+// Borland portability tweaks.
+//
 // Revision 1.10  1998/11/07 19:07:06  curt
 // Enable release builds using the --without-logging option to the configure
 // script.  Also a couple log message cleanups, plus some C to C++ comment
index 68a629115d6a74394de248ffef5683cbf6de9db4..964722f943af3ff1730b415287845a61feeed42e 100644 (file)
 using namespace std;
 #endif
 
+#ifdef __BORLANDC__
+#  define exception c_exception
+#endif
+
 #include <Scenery/tile.hxx>
 
 
@@ -61,6 +65,9 @@ fgAptGenerate(const string& path, fgTILE *tile);
 
 
 // $Log$
+// Revision 1.2  1998/11/23 21:48:10  curt
+// Borland portability tweaks.
+//
 // Revision 1.1  1998/09/14 02:14:01  curt
 // Initial revision of genapt.[ch]xx for generating airport scenery.
 //
index baa0646c98c7e8500568babfd8ef5599a608a483..72bb6359aed968fe0e1692d1bc39f3a4ec2b1d28 100644 (file)
 #include "star.hxx"
 #include <Debug/logstream.hxx>
 
+#ifdef __BORLANDC__
+#  define exception c_exception
+#endif
+#include <math.h>
+
 /**************************************************************************
  * void CelestialBody::updatePosition(fgTIME *t, Star *ourSun)
  *
index 864e090ad6ce9e6d38b4eadf616be54cd99c57e3..a61a25d3960078793e1b27ca029981a23315e5ed 100644 (file)
@@ -32,9 +32,6 @@
 #endif                                   
 
 
-#include <stdio.h>
-#include <math.h>
-
 #include <Time/fg_time.hxx>
 #include <Include/fg_constants.h>
 
index cde5521c06f8fe07f72dd98a916c167bcfe6f9bb..caa0e50750264c492a75a03cc6fc68c53da67474 100644 (file)
  * (Log is kept at end of this file)
  **************************************************************************/
 
+
+#ifdef __BORLANDC__
+#  define exception c_exception
+#endif
+#include <math.h>
+
 #include "jupiter.hxx"
 
 /*************************************************************************
index ccfc59970e288350ba4dade555e3df38897cd253..5f430c870cb54d4fb7875825846dd2aa49b55f51 100644 (file)
  * $Id$
  * (Log is kept at end of this file)
  **************************************************************************/
+
+#ifdef __BORLANDC__
+#  define exception c_exception
+#endif
+#include <math.h>
+
 #include "mars.hxx"
 
 /*************************************************************************
index 104a9daec24e44f6b83b9c6182b84598bbc29669..f8c3d67264a79541c8bde5a9f68c98bf39113daf 100644 (file)
  * $Id$
  * (Log is kept at end of this file)
  **************************************************************************/
+
+#ifdef __BORLANDC__
+#  define exception c_exception
+#endif
+#include <math.h>
+
 #include "mercury.hxx"
 
 /*************************************************************************
index 445774cd646e10446630cef6e1d36049ef9530a2..5ec50f4b5fc99e9b62e2e5280ad54e9be4d9ce09 100644 (file)
 #include <Debug/logstream.hxx>
 #include <Objects/texload.h>
 
+
+#ifdef __BORLANDC__
+#  define exception c_exception
+#endif
+#include <math.h>
+
 static GLuint moon_texid;
 static GLubyte *moon_texbuf;
 
index cbcbcae96b4321d77e75aac0df3de00c2fac6206..dce7190000b60b1c87391eb866a19020a3ae05b7 100644 (file)
  * (Log is kept at end of this file)
  **************************************************************************/
 
+#ifdef __BORLANDC__
+#  define exception c_exception
+#endif
+#include <math.h>
+
 #include "neptune.hxx"
 
 /*************************************************************************
index c58f3836e4668fe1af015465bd6778049e8540fb..5f643dc14467762513819f4b5d12f4906cfa3f7f 100644 (file)
  * $Id$
  * (Log is kept at end of this file)
  **************************************************************************/
+
+#ifdef __BORLANDC__
+#  define exception c_exception
+#endif
+#include <math.h>
+
 #include "saturn.hxx"
 
 /*************************************************************************
index c3995f48eca89d22ff4a287c85ac194d28dae06c..3aa13fbf70255b9a0eb94f388316e37417615b74 100644 (file)
 #  include <windows.h>
 #endif
 
+
+#ifdef __BORLANDC__
+#  define exception c_exception
+#endif
+#include <math.h>
+
 #include <GL/glut.h>
 #include <XGL/xgl.h>
 #include <Debug/logstream.hxx>
index f43eeba33e0513762f1eb3533fa3bac5ef6752c5..f8ce2d3a13602c29dff025cf3d5f4aa0805bf515 100644 (file)
  * $Id$
  * (Log is kept at end of this file)
  **************************************************************************/
+
+#ifdef __BORLANDC__
+#  define exception c_exception
+#endif
+#include <math.h>
+
 #include "star.hxx"
 
 /*************************************************************************
index ac20f6120f551032a9a34cdb47bbec8ddb968494..af910f77dbf9b81a98aa21b0475fee6afacfc635 100644 (file)
@@ -31,6 +31,7 @@
 #  include <windows.h>
 #endif
 
+
 #include <math.h>
 #include <stdio.h>
 #include <string.h>
@@ -255,6 +256,9 @@ void fgStarsRender( void ) {
 
 
 // $Log$
+// Revision 1.23  1998/11/23 21:48:28  curt
+// Borland portability tweaks.
+//
 // Revision 1.22  1998/11/07 19:07:07  curt
 // Enable release builds using the --without-logging option to the configure
 // script.  Also a couple log message cleanups, plus some C to C++ comment
index e21b06a6bfbe1251c8a08985f0f893bbee444ca8..c20a9180709b15c5cd50f415b7d74da9acd919a0 100644 (file)
  * $Id$
  * (Log is kept at end of this file)
  **************************************************************************/
+
+#ifdef __BORLANDC__
+#  define exception c_exception
+#endif
+#include <math.h>
+
 #include "uranus.hxx"
 
 /*************************************************************************
index 3e07e7997810f7ae65cfc6950c9af5cb385760d1..81088ffd1930a4d0fd9276777043dcb19cd13582 100644 (file)
  * $Id$
  * (Log is kept at end of this file)
  **************************************************************************/
+
+#ifdef __BORLANDC__
+#  define exception c_exception
+#endif
+#include <math.h>
+
 #include "venus.hxx"
 
 /*************************************************************************
index a234f5c64ae6ac5b78e1bf7208abf6db859ca0f2..7f0815be7bfe772bd63706117f48ca83d6fe426c 100644 (file)
 #  include <windows.h>
 #endif
 
+#ifdef __BORLANDC__
+#  define exception c_exception
+#endif
+#include <math.h>
+
 #include <GL/glut.h>
 #include <stdlib.h>
 #include <string.h>
@@ -835,6 +840,9 @@ void fgUpdateHUD( void ) {
 }
 
 // $Log$
+// Revision 1.28  1998/11/23 21:48:59  curt
+// Borland portability tweaks.
+//
 // Revision 1.27  1998/11/06 21:17:47  curt
 // Converted to new logstream debugging facility.  This allows release
 // builds with no messages at all (and no performance impact) by using
index 69ffbc14ed4370cec83b676c9eda7444e5b0f53c..fe589792afcca1a3b83d672b1b61aa4f8330a553 100644 (file)
 #include <Debug/logstream.hxx>
 #include <Flight/flight.hxx>
 #include <Include/fg_constants.h>
+#include <Main/options.hxx>
 #include <Misc/fgstream.hxx>
 
 #include "fg_serial.hxx"
 
-#include "options.hxx"
-
-
-const int fgOPTIONS::FG_RADIUS_MIN;
-const int fgOPTIONS::FG_RADIUS_MAX;
-
 
 inline double
 atof( const string& str )
@@ -623,7 +618,7 @@ void fgOPTIONS::usage ( void ) {
     printf("\t--enable-textures:  enable textures\n");
     printf("\t--disable-wireframe:  disable wireframe drawing mode\n");
     printf("\t--enable-wireframe:  enable wireframe drawing mode\n");
-    printf("\t--geomtry=WWWxHHH:  specify window geometry: 640x480, 800x600\n");
+    printf("\t--geometry=WWWxHHH:  window geometry: 640x480, 800x600, etc.\n");
     printf("\n");
 
     printf("Scenery Options:\n");
@@ -647,6 +642,9 @@ fgOPTIONS::~fgOPTIONS( void ) {
 
 
 // $Log$
+// Revision 1.31  1998/11/23 21:49:04  curt
+// Borland portability tweaks.
+//
 // Revision 1.30  1998/11/16 14:00:02  curt
 // Added pow() macro bug work around.
 // Added support for starting FGFS at various resolutions.
index fbfa4c9713bdb035d2617164ae82f2c685d4b3f1..491f3a7b6f5e003f5385487553ba4e4ae7c824db 100644 (file)
 #include <XGL/xgl.h>
 
 #include <string>
-
-#ifdef NEEDNAMESPACESTD
-using namespace std;
-#endif
+#include <Include/compiler.h>
+FG_USING_STD(string);
 
 #include "fg_serial.hxx"
 
@@ -74,8 +72,11 @@ public:
        FG_FOG_NICEST   = 2
     };
 
-    static const int FG_RADIUS_MIN = 1;
-    static const int FG_RADIUS_MAX = 4;
+    enum
+    {
+       FG_RADIUS_MIN = 1,
+       FG_RADIUS_MAX = 4
+    };
 
 private:
 
@@ -243,6 +244,9 @@ extern fgOPTIONS current_options;
 
 
 // $Log$
+// Revision 1.23  1998/11/23 21:49:05  curt
+// Borland portability tweaks.
+//
 // Revision 1.22  1998/11/20 01:02:38  curt
 // Try to detect Mesa/Glide/Voodoo and chose the appropriate resolution.
 //
index 63ffbea66fa4ef6d023b0c8c36bf2853a1b68f63..57117678f7a24338ec1bcc680f8c1ef2903e7a0b 100644 (file)
                          // contains milliseconds
 #endif
 
+#if defined( linux ) || defined( __FreeBSD__ )
+#  define _G_NO_EXTERN_TEMPLATES
+#endif
+
 #include "Include/fg_stl_config.h"
 #include STL_ALGORITHM
 #include STL_FUNCTIONAL
@@ -261,6 +265,9 @@ fgEVENT_MGR::~fgEVENT_MGR( void ) {
 
 
 // $Log$
+// Revision 1.12  1998/11/23 21:49:07  curt
+// Borland portability tweaks.
+//
 // Revision 1.11  1998/11/09 23:41:51  curt
 // Log message clean ups.
 //
index b8a4a559972384038dc2eae2006904a640911b87..71e5207b68c639496a5a37e2c48894baf432b698 100644 (file)
 #include <GL/glut.h>
 #include <XGL/xgl.h>
 
+#ifdef __BORLANDC__
+#  define exception c_exception
+#endif
+#include <math.h>
+
 #include <string.h>
 
 #include <Aircraft/aircraft.hxx>
@@ -212,6 +217,9 @@ fgLIGHT::~fgLIGHT( void ) {
 
 
 // $Log$
+// Revision 1.21  1998/11/23 21:49:09  curt
+// Borland portability tweaks.
+//
 // Revision 1.20  1998/11/06 21:18:27  curt
 // Converted to new logstream debugging facility.  This allows release
 // builds with no messages at all (and no performance impact) by using
index 39f9b570713f5911864e30cada877af6f31356bc..7d838c18391c00ec71aad41b09bf5257fc4fc1ce 100644 (file)
 
 #include <math.h>
 
-#include "weather.hxx"
-
 #include <Aircraft/aircraft.hxx>
 #include <Debug/logstream.hxx>
 #include <Math/fg_random.h>
+#include <Weather/weather.hxx>
 
 
 // This is a record containing current weather info
@@ -105,6 +104,9 @@ void fgWeatherSetVisibility( float visibility ) {
 
 
 // $Log$
+// Revision 1.3  1998/11/23 21:49:11  curt
+// Borland portability tweaks.
+//
 // Revision 1.2  1998/11/06 21:18:29  curt
 // Converted to new logstream debugging facility.  This allows release
 // builds with no messages at all (and no performance impact) by using