1
0
Fork 0

Borland portability tweaks.

This commit is contained in:
curt 1998-11-23 21:48:09 +00:00
parent ecf2a3eab3
commit a83788c587
21 changed files with 125 additions and 18 deletions

View file

@ -31,6 +31,11 @@
using namespace std; using namespace std;
#endif #endif
#ifdef __BORLANDC__
# define exception c_exception
#endif
#include <math.h>
#include <Debug/logstream.hxx> #include <Debug/logstream.hxx>
// #include <Include/fg_types.h> // #include <Include/fg_types.h>
#include <Math/fg_geodesy.hxx> #include <Math/fg_geodesy.hxx>
@ -285,6 +290,9 @@ fgAptGenerate(const string& path, fgTILE *tile)
// $Log$ // $Log$
// Revision 1.11 1998/11/23 21:48:09 curt
// Borland portability tweaks.
//
// Revision 1.10 1998/11/07 19:07:06 curt // Revision 1.10 1998/11/07 19:07:06 curt
// Enable release builds using the --without-logging option to the configure // Enable release builds using the --without-logging option to the configure
// script. Also a couple log message cleanups, plus some C to C++ comment // script. Also a couple log message cleanups, plus some C to C++ comment

View file

@ -40,6 +40,10 @@
using namespace std; using namespace std;
#endif #endif
#ifdef __BORLANDC__
# define exception c_exception
#endif
#include <Scenery/tile.hxx> #include <Scenery/tile.hxx>
@ -61,6 +65,9 @@ fgAptGenerate(const string& path, fgTILE *tile);
// $Log$ // $Log$
// Revision 1.2 1998/11/23 21:48:10 curt
// Borland portability tweaks.
//
// Revision 1.1 1998/09/14 02:14:01 curt // Revision 1.1 1998/09/14 02:14:01 curt
// Initial revision of genapt.[ch]xx for generating airport scenery. // Initial revision of genapt.[ch]xx for generating airport scenery.
// //

View file

@ -27,6 +27,11 @@
#include "star.hxx" #include "star.hxx"
#include <Debug/logstream.hxx> #include <Debug/logstream.hxx>
#ifdef __BORLANDC__
# define exception c_exception
#endif
#include <math.h>
/************************************************************************** /**************************************************************************
* void CelestialBody::updatePosition(fgTIME *t, Star *ourSun) * void CelestialBody::updatePosition(fgTIME *t, Star *ourSun)
* *

View file

@ -32,9 +32,6 @@
#endif #endif
#include <stdio.h>
#include <math.h>
#include <Time/fg_time.hxx> #include <Time/fg_time.hxx>
#include <Include/fg_constants.h> #include <Include/fg_constants.h>

View file

@ -23,6 +23,12 @@
* (Log is kept at end of this file) * (Log is kept at end of this file)
**************************************************************************/ **************************************************************************/
#ifdef __BORLANDC__
# define exception c_exception
#endif
#include <math.h>
#include "jupiter.hxx" #include "jupiter.hxx"
/************************************************************************* /*************************************************************************

View file

@ -22,6 +22,12 @@
* $Id$ * $Id$
* (Log is kept at end of this file) * (Log is kept at end of this file)
**************************************************************************/ **************************************************************************/
#ifdef __BORLANDC__
# define exception c_exception
#endif
#include <math.h>
#include "mars.hxx" #include "mars.hxx"
/************************************************************************* /*************************************************************************

View file

@ -22,6 +22,12 @@
* $Id$ * $Id$
* (Log is kept at end of this file) * (Log is kept at end of this file)
**************************************************************************/ **************************************************************************/
#ifdef __BORLANDC__
# define exception c_exception
#endif
#include <math.h>
#include "mercury.hxx" #include "mercury.hxx"
/************************************************************************* /*************************************************************************

View file

@ -29,6 +29,12 @@
#include <Debug/logstream.hxx> #include <Debug/logstream.hxx>
#include <Objects/texload.h> #include <Objects/texload.h>
#ifdef __BORLANDC__
# define exception c_exception
#endif
#include <math.h>
static GLuint moon_texid; static GLuint moon_texid;
static GLubyte *moon_texbuf; static GLubyte *moon_texbuf;

View file

@ -23,6 +23,11 @@
* (Log is kept at end of this file) * (Log is kept at end of this file)
**************************************************************************/ **************************************************************************/
#ifdef __BORLANDC__
# define exception c_exception
#endif
#include <math.h>
#include "neptune.hxx" #include "neptune.hxx"
/************************************************************************* /*************************************************************************

View file

@ -22,6 +22,12 @@
* $Id$ * $Id$
* (Log is kept at end of this file) * (Log is kept at end of this file)
**************************************************************************/ **************************************************************************/
#ifdef __BORLANDC__
# define exception c_exception
#endif
#include <math.h>
#include "saturn.hxx" #include "saturn.hxx"
/************************************************************************* /*************************************************************************

View file

@ -31,6 +31,12 @@
# include <windows.h> # include <windows.h>
#endif #endif
#ifdef __BORLANDC__
# define exception c_exception
#endif
#include <math.h>
#include <GL/glut.h> #include <GL/glut.h>
#include <XGL/xgl.h> #include <XGL/xgl.h>
#include <Debug/logstream.hxx> #include <Debug/logstream.hxx>

View file

@ -22,6 +22,12 @@
* $Id$ * $Id$
* (Log is kept at end of this file) * (Log is kept at end of this file)
**************************************************************************/ **************************************************************************/
#ifdef __BORLANDC__
# define exception c_exception
#endif
#include <math.h>
#include "star.hxx" #include "star.hxx"
/************************************************************************* /*************************************************************************

View file

@ -31,6 +31,7 @@
# include <windows.h> # include <windows.h>
#endif #endif
#include <math.h> #include <math.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
@ -255,6 +256,9 @@ void fgStarsRender( void ) {
// $Log$ // $Log$
// Revision 1.23 1998/11/23 21:48:28 curt
// Borland portability tweaks.
//
// Revision 1.22 1998/11/07 19:07:07 curt // Revision 1.22 1998/11/07 19:07:07 curt
// Enable release builds using the --without-logging option to the configure // Enable release builds using the --without-logging option to the configure
// script. Also a couple log message cleanups, plus some C to C++ comment // script. Also a couple log message cleanups, plus some C to C++ comment

View file

@ -22,6 +22,12 @@
* $Id$ * $Id$
* (Log is kept at end of this file) * (Log is kept at end of this file)
**************************************************************************/ **************************************************************************/
#ifdef __BORLANDC__
# define exception c_exception
#endif
#include <math.h>
#include "uranus.hxx" #include "uranus.hxx"
/************************************************************************* /*************************************************************************

View file

@ -22,6 +22,12 @@
* $Id$ * $Id$
* (Log is kept at end of this file) * (Log is kept at end of this file)
**************************************************************************/ **************************************************************************/
#ifdef __BORLANDC__
# define exception c_exception
#endif
#include <math.h>
#include "venus.hxx" #include "venus.hxx"
/************************************************************************* /*************************************************************************

View file

@ -30,6 +30,11 @@
# include <windows.h> # include <windows.h>
#endif #endif
#ifdef __BORLANDC__
# define exception c_exception
#endif
#include <math.h>
#include <GL/glut.h> #include <GL/glut.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
@ -835,6 +840,9 @@ void fgUpdateHUD( void ) {
} }
// $Log$ // $Log$
// Revision 1.28 1998/11/23 21:48:59 curt
// Borland portability tweaks.
//
// Revision 1.27 1998/11/06 21:17:47 curt // Revision 1.27 1998/11/06 21:17:47 curt
// Converted to new logstream debugging facility. This allows release // Converted to new logstream debugging facility. This allows release
// builds with no messages at all (and no performance impact) by using // builds with no messages at all (and no performance impact) by using

View file

@ -36,16 +36,11 @@
#include <Debug/logstream.hxx> #include <Debug/logstream.hxx>
#include <Flight/flight.hxx> #include <Flight/flight.hxx>
#include <Include/fg_constants.h> #include <Include/fg_constants.h>
#include <Main/options.hxx>
#include <Misc/fgstream.hxx> #include <Misc/fgstream.hxx>
#include "fg_serial.hxx" #include "fg_serial.hxx"
#include "options.hxx"
const int fgOPTIONS::FG_RADIUS_MIN;
const int fgOPTIONS::FG_RADIUS_MAX;
inline double inline double
atof( const string& str ) atof( const string& str )
@ -623,7 +618,7 @@ void fgOPTIONS::usage ( void ) {
printf("\t--enable-textures: enable textures\n"); printf("\t--enable-textures: enable textures\n");
printf("\t--disable-wireframe: disable wireframe drawing mode\n"); printf("\t--disable-wireframe: disable wireframe drawing mode\n");
printf("\t--enable-wireframe: enable 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("\n");
printf("Scenery Options:\n"); printf("Scenery Options:\n");
@ -647,6 +642,9 @@ fgOPTIONS::~fgOPTIONS( void ) {
// $Log$ // $Log$
// Revision 1.31 1998/11/23 21:49:04 curt
// Borland portability tweaks.
//
// Revision 1.30 1998/11/16 14:00:02 curt // Revision 1.30 1998/11/16 14:00:02 curt
// Added pow() macro bug work around. // Added pow() macro bug work around.
// Added support for starting FGFS at various resolutions. // Added support for starting FGFS at various resolutions.

View file

@ -42,10 +42,8 @@
#include <XGL/xgl.h> #include <XGL/xgl.h>
#include <string> #include <string>
#include <Include/compiler.h>
#ifdef NEEDNAMESPACESTD FG_USING_STD(string);
using namespace std;
#endif
#include "fg_serial.hxx" #include "fg_serial.hxx"
@ -74,8 +72,11 @@ public:
FG_FOG_NICEST = 2 FG_FOG_NICEST = 2
}; };
static const int FG_RADIUS_MIN = 1; enum
static const int FG_RADIUS_MAX = 4; {
FG_RADIUS_MIN = 1,
FG_RADIUS_MAX = 4
};
private: private:
@ -243,6 +244,9 @@ extern fgOPTIONS current_options;
// $Log$ // $Log$
// Revision 1.23 1998/11/23 21:49:05 curt
// Borland portability tweaks.
//
// Revision 1.22 1998/11/20 01:02:38 curt // Revision 1.22 1998/11/20 01:02:38 curt
// Try to detect Mesa/Glide/Voodoo and chose the appropriate resolution. // Try to detect Mesa/Glide/Voodoo and chose the appropriate resolution.
// //

View file

@ -39,6 +39,10 @@
// contains milliseconds // contains milliseconds
#endif #endif
#if defined( linux ) || defined( __FreeBSD__ )
# define _G_NO_EXTERN_TEMPLATES
#endif
#include "Include/fg_stl_config.h" #include "Include/fg_stl_config.h"
#include STL_ALGORITHM #include STL_ALGORITHM
#include STL_FUNCTIONAL #include STL_FUNCTIONAL
@ -261,6 +265,9 @@ fgEVENT_MGR::~fgEVENT_MGR( void ) {
// $Log$ // $Log$
// Revision 1.12 1998/11/23 21:49:07 curt
// Borland portability tweaks.
//
// Revision 1.11 1998/11/09 23:41:51 curt // Revision 1.11 1998/11/09 23:41:51 curt
// Log message clean ups. // Log message clean ups.
// //

View file

@ -33,6 +33,11 @@
#include <GL/glut.h> #include <GL/glut.h>
#include <XGL/xgl.h> #include <XGL/xgl.h>
#ifdef __BORLANDC__
# define exception c_exception
#endif
#include <math.h>
#include <string.h> #include <string.h>
#include <Aircraft/aircraft.hxx> #include <Aircraft/aircraft.hxx>
@ -212,6 +217,9 @@ fgLIGHT::~fgLIGHT( void ) {
// $Log$ // $Log$
// Revision 1.21 1998/11/23 21:49:09 curt
// Borland portability tweaks.
//
// Revision 1.20 1998/11/06 21:18:27 curt // Revision 1.20 1998/11/06 21:18:27 curt
// Converted to new logstream debugging facility. This allows release // Converted to new logstream debugging facility. This allows release
// builds with no messages at all (and no performance impact) by using // builds with no messages at all (and no performance impact) by using

View file

@ -35,11 +35,10 @@
#include <math.h> #include <math.h>
#include "weather.hxx"
#include <Aircraft/aircraft.hxx> #include <Aircraft/aircraft.hxx>
#include <Debug/logstream.hxx> #include <Debug/logstream.hxx>
#include <Math/fg_random.h> #include <Math/fg_random.h>
#include <Weather/weather.hxx>
// This is a record containing current weather info // This is a record containing current weather info
@ -105,6 +104,9 @@ void fgWeatherSetVisibility( float visibility ) {
// $Log$ // $Log$
// Revision 1.3 1998/11/23 21:49:11 curt
// Borland portability tweaks.
//
// Revision 1.2 1998/11/06 21:18:29 curt // Revision 1.2 1998/11/06 21:18:29 curt
// Converted to new logstream debugging facility. This allows release // Converted to new logstream debugging facility. This allows release
// builds with no messages at all (and no performance impact) by using // builds with no messages at all (and no performance impact) by using