From a83788c5877758f033b9cd63a8d5cffe7b0a14e4 Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 23 Nov 1998 21:48:09 +0000 Subject: [PATCH] Borland portability tweaks. --- Airports/genapt.cxx | 8 ++++++++ Airports/genapt.hxx | 7 +++++++ Astro/celestialBody.cxx | 5 +++++ Astro/celestialBody.hxx | 3 --- Astro/jupiter.cxx | 6 ++++++ Astro/mars.cxx | 6 ++++++ Astro/mercury.cxx | 6 ++++++ Astro/moon.cxx | 6 ++++++ Astro/neptune.cxx | 5 +++++ Astro/saturn.cxx | 6 ++++++ Astro/solarsystem.cxx | 6 ++++++ Astro/star.cxx | 6 ++++++ Astro/stars.cxx | 4 ++++ Astro/uranus.cxx | 6 ++++++ Astro/venus.cxx | 6 ++++++ Cockpit/hud.cxx | 8 ++++++++ Main/options.cxx | 12 +++++------- Main/options.hxx | 16 ++++++++++------ Time/event.cxx | 7 +++++++ Time/light.cxx | 8 ++++++++ Weather/weather.cxx | 6 ++++-- 21 files changed, 125 insertions(+), 18 deletions(-) diff --git a/Airports/genapt.cxx b/Airports/genapt.cxx index 4ef94cf70..ba5a7ccf1 100644 --- a/Airports/genapt.cxx +++ b/Airports/genapt.cxx @@ -31,6 +31,11 @@ using namespace std; #endif +#ifdef __BORLANDC__ +# define exception c_exception +#endif +#include + #include // #include #include @@ -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 diff --git a/Airports/genapt.hxx b/Airports/genapt.hxx index 68a629115..964722f94 100644 --- a/Airports/genapt.hxx +++ b/Airports/genapt.hxx @@ -40,6 +40,10 @@ using namespace std; #endif +#ifdef __BORLANDC__ +# define exception c_exception +#endif + #include @@ -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. // diff --git a/Astro/celestialBody.cxx b/Astro/celestialBody.cxx index baa0646c9..72bb6359a 100644 --- a/Astro/celestialBody.cxx +++ b/Astro/celestialBody.cxx @@ -27,6 +27,11 @@ #include "star.hxx" #include +#ifdef __BORLANDC__ +# define exception c_exception +#endif +#include + /************************************************************************** * void CelestialBody::updatePosition(fgTIME *t, Star *ourSun) * diff --git a/Astro/celestialBody.hxx b/Astro/celestialBody.hxx index 864e090ad..a61a25d39 100644 --- a/Astro/celestialBody.hxx +++ b/Astro/celestialBody.hxx @@ -32,9 +32,6 @@ #endif -#include -#include - #include