1
0
Fork 0

Added initial support for native SGI compilers.

This commit is contained in:
curt 1999-02-26 22:08:34 +00:00
parent 62a42862f7
commit 00ccbd1f25
23 changed files with 170 additions and 83 deletions

View file

@ -23,19 +23,20 @@
// (Log is kept at end of this file) // (Log is kept at end of this file)
#include <string> // Standard C++ string library #include <Include/compiler.h>
#include <vector>
#include "Include/fg_stl_config.h"
#ifdef NEEDNAMESPACESTD #include STL_STRING
using namespace std; #include <vector>
#endif
#ifdef __BORLANDC__ #ifdef __BORLANDC__
# define exception c_exception # define exception c_exception
#endif #endif
#include <math.h> #include <math.h>
#ifdef FG_HAVE_NATIVE_SGI_COMPILERS
# include <strings.h>
#endif
#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>
@ -49,6 +50,8 @@ using namespace std;
#include "genapt.hxx" #include "genapt.hxx"
FG_USING_NAMESPACE(std);
typedef vector < Point3D > container; typedef vector < Point3D > container;
typedef container::iterator iterator; typedef container::iterator iterator;
@ -235,7 +238,7 @@ fgAptGenerate(const string& path, fgTILE *tile)
if ( token == "a" ) { if ( token == "a" ) {
// airport info record (start of airport) // airport info record (start of airport)
if ( apt_id != "" ) { if ( apt_id.length() > 0 ) {
// we have just finished reading and airport record. // we have just finished reading and airport record.
// process the info // process the info
gen_base(average, perimeter, tile); gen_base(average, perimeter, tile);
@ -274,7 +277,7 @@ fgAptGenerate(const string& path, fgTILE *tile)
in >> skipcomment; in >> skipcomment;
} }
if ( apt_id != "" ) { if ( apt_id.length() > 0 ) {
// we have just finished reading and airport record. // we have just finished reading and airport record.
// process the info // process the info
size = perimeter.size(); size = perimeter.size();
@ -290,6 +293,9 @@ fgAptGenerate(const string& path, fgTILE *tile)
// $Log$ // $Log$
// Revision 1.13 1999/02/26 22:08:34 curt
// Added initial support for native SGI compilers.
//
// Revision 1.12 1999/02/01 21:08:33 curt // Revision 1.12 1999/02/01 21:08:33 curt
// Optimizations from Norman Vine. // Optimizations from Norman Vine.
// //

View file

@ -1,5 +1,5 @@
// //
// airports.cxx -- a really simplistic class to manage airport ID, // simple.cxx -- a really simplistic class to manage airport ID,
// lat, lon of the center of one of it's runways, and // lat, lon of the center of one of it's runways, and
// elevation in feet. // elevation in feet.
// //
@ -25,18 +25,18 @@
// (Log is kept at end of this file) // (Log is kept at end of this file)
#include <string> #include <Include/compiler.h>
#include <Debug/logstream.hxx> #include <Debug/logstream.hxx>
#include <Main/options.hxx>
#include <Misc/fgstream.hxx> #include <Misc/fgstream.hxx>
#include <Main/options.hxx>
#include "simple.hxx" #include STL_STRING
#include "Include/fg_stl_config.h"
#include STL_FUNCTIONAL #include STL_FUNCTIONAL
#include STL_ALGORITHM #include STL_ALGORITHM
#include "simple.hxx"
fgAIRPORTS::fgAIRPORTS() { fgAIRPORTS::fgAIRPORTS() {
} }
@ -110,6 +110,9 @@ fgAIRPORTS::~fgAIRPORTS( void ) {
// $Log$ // $Log$
// Revision 1.10 1999/02/26 22:08:35 curt
// Added initial support for native SGI compilers.
//
// Revision 1.9 1998/11/06 21:17:34 curt // Revision 1.9 1998/11/06 21:17:34 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

@ -1,5 +1,5 @@
// //
// airports.hxx -- a really simplistic class to manage airport ID, // simple.hxx -- a really simplistic class to manage airport ID,
// lat, lon of the center of one of it's runways, and // lat, lon of the center of one of it's runways, and
// elevation in feet. // elevation in feet.
// //
@ -34,13 +34,12 @@
#endif #endif
#include <string> // Standard C++ string library #include <Include/compiler.h>
#include <set>
#include "Include/fg_stl_config.h"
#ifdef NEEDNAMESPACESTD #include STL_STRING
using namespace std; #include <set>
#endif
FG_USING_NAMESPACE(std);
class fgAIRPORT { class fgAIRPORT {
@ -105,6 +104,9 @@ public:
// $Log$ // $Log$
// Revision 1.6 1999/02/26 22:08:36 curt
// Added initial support for native SGI compilers.
//
// Revision 1.5 1998/11/02 18:25:34 curt // Revision 1.5 1998/11/02 18:25:34 curt
// Check for __CYGWIN__ (b20) as well as __CYGWIN32__ (pre b20 compilers) // Check for __CYGWIN__ (b20) as well as __CYGWIN32__ (pre b20 compilers)
// Other misc. tweaks. // Other misc. tweaks.

View file

@ -23,19 +23,19 @@
* (Log is kept at end of this file) * (Log is kept at end of this file)
**************************************************************************/ **************************************************************************/
#include <FDM/flight.hxx>
#include <string.h> #include <string.h>
#include "moon.hxx"
#include <Debug/logstream.hxx> #include <Debug/logstream.hxx>
#include <Objects/texload.h> #include <Objects/texload.h>
#include <FDM/flight.hxx>
#ifdef __BORLANDC__ #ifdef __BORLANDC__
# define exception c_exception # define exception c_exception
#endif #endif
#include <math.h> #include <math.h>
#include "moon.hxx"
static GLuint moon_texid; static GLuint moon_texid;
static GLubyte *moon_texbuf; static GLubyte *moon_texbuf;

View file

@ -53,9 +53,7 @@
#include <deque> // STL double ended queue #include <deque> // STL double ended queue
#ifdef NEEDNAMESPACESTD FG_USING_NAMESPACE(std);
using namespace std;
#endif
#ifndef WIN32 #ifndef WIN32
typedef struct { typedef struct {
@ -524,6 +522,9 @@ void fgHUDSetTimeMode( Hptr hud, int time_of_day );
#endif // _HUD_H #endif // _HUD_H
// $Log$ // $Log$
// Revision 1.18 1999/02/26 22:08:45 curt
// Added initial support for native SGI compilers.
//
// Revision 1.17 1999/02/01 21:33:28 curt // Revision 1.17 1999/02/01 21:33:28 curt
// Renamed FlightGear/Simulator/Flight to FlightGear/Simulator/FDM since // Renamed FlightGear/Simulator/Flight to FlightGear/Simulator/FDM since
// Jon accepted my offer to do this and thought it was a good idea. // Jon accepted my offer to do this and thought it was a good idea.

View file

@ -557,7 +557,7 @@ void fgPanelUpdate ( void ) {
var[0] = get_speed() * 1.4; // We have to multiply the airspeed by a var[0] = get_speed() * 1.4; // We have to multiply the airspeed by a
// factor, to simulate flying a Bonanza // factor, to simulate flying a Bonanza
var[1] = get_altitude(); var[1] = get_altitude();
var[2] = get_climb_rate(); var[2] = get_climb_rate() / 1000.0;
var[3] = get_throttleval(); var[3] = get_throttleval();
// v = &current_view; // v = &current_view;
xglMatrixMode(GL_PROJECTION); xglMatrixMode(GL_PROJECTION);
@ -580,7 +580,7 @@ void fgPanelUpdate ( void ) {
xglLoadIdentity(); xglLoadIdentity();
xglTranslatef(pointer[i].XPos, pointer[i].YPos, 0.0); xglTranslatef(pointer[i].XPos, pointer[i].YPos, 0.0);
xglRotatef(-pointer[i].tape[0], 0.0, 0.0, 1.0); xglRotatef(-pointer[i].tape[0], 0.0, 0.0, 1.0);
fgEraseArea(pointer[i].vertices, 20, (GLfloat)(pointer[i].teXpos), (GLfloat)(pointer[i].texYpos), (GLfloat)(pointer[i].XPos), (GLfloat)(pointer[i].YPos), 0); fgEraseArea(pointer[i].vertices, 20, (GLfloat)(pointer[i].teXpos), (GLfloat)(pointer[i].texYpos), (GLfloat)(pointer[i].XPos), (GLfloat)(pointer[i].YPos), 0, 1);
xglLoadIdentity(); xglLoadIdentity();
} }
@ -1112,6 +1112,9 @@ printf(" %f %f %f %f \n", mvmatrix[12], mvmatrix[13], mvmatrix[14], mvma
} }
// $Log$ // $Log$
// Revision 1.16 1999/02/26 22:08:46 curt
// Added initial support for native SGI compilers.
//
// Revision 1.15 1999/02/12 01:46:29 curt // Revision 1.15 1999/02/12 01:46:29 curt
// Updates and fixes from Friedemann. // Updates and fixes from Friedemann.
// //

View file

@ -106,7 +106,7 @@ void CreatePointer(Pointer *pointer);
void UpdatePointer(Pointer *pointer); void UpdatePointer(Pointer *pointer);
void fgEraseArea(GLfloat *array, int NumVerti, GLfloat texXPos, void fgEraseArea(GLfloat *array, int NumVerti, GLfloat texXPos,
GLfloat texYPos, GLfloat XPos, GLfloat YPos, GLfloat texYPos, GLfloat XPos, GLfloat YPos,
int Texid, float ScaleFactor = 1); int Texid, float ScaleFactor);
void fgUpdateTurnCoordinator(TurnCoordinator *turn); void fgUpdateTurnCoordinator(TurnCoordinator *turn);
void fgInitTurnCoordinator(TurnCoordinator *turn); void fgInitTurnCoordinator(TurnCoordinator *turn);
void DrawScale(float XPos, float YPos, float InnerRadius, float OuterRadius, void DrawScale(float XPos, float YPos, float InnerRadius, float OuterRadius,
@ -120,6 +120,9 @@ void PrintMatrix( void);
// $Log$ // $Log$
// Revision 1.7 1999/02/26 22:08:47 curt
// Added initial support for native SGI compilers.
//
// Revision 1.6 1999/02/12 01:46:30 curt // Revision 1.6 1999/02/12 01:46:30 curt
// Updates and fixes from Friedemann. // Updates and fixes from Friedemann.
// //

View file

@ -35,12 +35,12 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <Debug/logstream.hxx>
#include <Aircraft/aircraft.hxx> #include <Aircraft/aircraft.hxx>
#include <Astro/solarsystem.hxx> #include <Astro/solarsystem.hxx>
#include <Astro/sky.hxx> #include <Astro/sky.hxx>
#include <Autopilot/autopilot.hxx> #include <Autopilot/autopilot.hxx>
#include <Cockpit/hud.hxx> #include <Cockpit/hud.hxx>
#include <Debug/logstream.hxx>
#include <GUI/gui.h> #include <GUI/gui.h>
#include <Include/fg_constants.h> #include <Include/fg_constants.h>
#include <Objects/material.hxx> #include <Objects/material.hxx>
@ -434,6 +434,9 @@ void GLUTspecialkey(int k, int x, int y) {
// $Log$ // $Log$
// Revision 1.42 1999/02/26 22:09:46 curt
// Added initial support for native SGI compilers.
//
// Revision 1.41 1999/02/12 23:22:43 curt // Revision 1.41 1999/02/12 23:22:43 curt
// Allow auto-throttle adjustment while active. // Allow auto-throttle adjustment while active.
// //

View file

@ -53,6 +53,7 @@
#include <Include/fg_constants.h> // for VERSION #include <Include/fg_constants.h> // for VERSION
#include <Include/general.hxx> #include <Include/general.hxx>
#include <Debug/logstream.hxx>
#include <Aircraft/aircraft.hxx> #include <Aircraft/aircraft.hxx>
#include <Astro/sky.hxx> #include <Astro/sky.hxx>
#include <Astro/stars.hxx> #include <Astro/stars.hxx>
@ -65,7 +66,6 @@
#include <Autopilot/autopilot.hxx> #include <Autopilot/autopilot.hxx>
#include <Cockpit/cockpit.hxx> #include <Cockpit/cockpit.hxx>
#include <Debug/logstream.hxx>
#include <GUI/gui.h> #include <GUI/gui.h>
#include <Joystick/joystick.hxx> #include <Joystick/joystick.hxx>
#include <Math/fg_geodesy.hxx> #include <Math/fg_geodesy.hxx>
@ -1007,6 +1007,9 @@ int main( int argc, char **argv ) {
// $Log$ // $Log$
// Revision 1.86 1999/02/26 22:09:47 curt
// Added initial support for native SGI compilers.
//
// Revision 1.85 1999/02/05 21:29:08 curt // Revision 1.85 1999/02/05 21:29:08 curt
// Modifications to incorporate Jon S. Berndts flight model code. // Modifications to incorporate Jon S. Berndts flight model code.
// //

View file

@ -37,10 +37,13 @@
# define _G_NO_EXTERN_TEMPLATES # define _G_NO_EXTERN_TEMPLATES
#endif #endif
#include <string> #include <Include/compiler.h>
#include STL_STRING
#include <Include/fg_constants.h> #include <Include/fg_constants.h>
#include <Debug/logstream.hxx>
#include <Aircraft/aircraft.hxx> #include <Aircraft/aircraft.hxx>
#include <Airports/simple.hxx> #include <Airports/simple.hxx>
#include <Astro/sky.hxx> #include <Astro/sky.hxx>
@ -48,7 +51,6 @@
#include <Astro/solarsystem.hxx> #include <Astro/solarsystem.hxx>
#include <Autopilot/autopilot.hxx> #include <Autopilot/autopilot.hxx>
#include <Cockpit/cockpit.hxx> #include <Cockpit/cockpit.hxx>
#include <Debug/logstream.hxx>
#include <Joystick/joystick.hxx> #include <Joystick/joystick.hxx>
#include <Math/fg_geodesy.hxx> #include <Math/fg_geodesy.hxx>
#include <Math/fg_random.h> #include <Math/fg_random.h>
@ -67,6 +69,10 @@
#include "views.hxx" #include "views.hxx"
#include "fg_serial.hxx" #include "fg_serial.hxx"
FG_USING_STD(string);
#ifdef FG_HAVE_NATIVE_SGI_COMPILERS
FG_USING_NAMESPACE(std);
#endif
extern const char *default_root; extern const char *default_root;
@ -392,6 +398,9 @@ int fgInitSubsystems( void )
// $Log$ // $Log$
// Revision 1.67 1999/02/26 22:09:48 curt
// Added initial support for native SGI compilers.
//
// Revision 1.66 1999/02/05 21:29:10 curt // Revision 1.66 1999/02/05 21:29:10 curt
// Modifications to incorporate Jon S. Berndts flight model code. // Modifications to incorporate Jon S. Berndts flight model code.
// //

View file

@ -33,12 +33,9 @@
#include STL_STRING #include STL_STRING
#include STL_IOSTREAM #include STL_IOSTREAM
#include <vector> #include <vector>
#include "Include/fg_stl_config.h"
FG_USING_NAMESPACE(std);
#include <Aircraft/aircraft.hxx>
#include <Debug/logstream.hxx> #include <Debug/logstream.hxx>
#include <Aircraft/aircraft.hxx>
#include <Include/fg_constants.h> #include <Include/fg_constants.h>
#include <Serial/serial.hxx> #include <Serial/serial.hxx>
#include <Time/fg_time.hxx> #include <Time/fg_time.hxx>
@ -47,6 +44,7 @@ FG_USING_NAMESPACE(std);
#include "fg_serial.hxx" #include "fg_serial.hxx"
FG_USING_NAMESPACE(std);
// support an arbitrary number of serial channels. Each channel can // support an arbitrary number of serial channels. Each channel can
// be assigned to an arbitrary port. Bi-directional communication is // be assigned to an arbitrary port. Bi-directional communication is
@ -468,6 +466,9 @@ void fgSerialProcess() {
// $Log$ // $Log$
// Revision 1.12 1999/02/26 22:09:50 curt
// Added initial support for native SGI compilers.
//
// Revision 1.11 1999/02/05 21:29:11 curt // Revision 1.11 1999/02/05 21:29:11 curt
// Modifications to incorporate Jon S. Berndts flight model code. // Modifications to incorporate Jon S. Berndts flight model code.
// //

View file

@ -33,10 +33,10 @@
#include <string> #include <string>
#include <Debug/logstream.hxx> #include <Debug/logstream.hxx>
#include <Misc/fgstream.hxx>
#include <FDM/flight.hxx> #include <FDM/flight.hxx>
#include <Include/fg_constants.h> #include <Include/fg_constants.h>
#include <Main/options.hxx> #include <Main/options.hxx>
#include <Misc/fgstream.hxx>
#include "fg_serial.hxx" #include "fg_serial.hxx"
@ -631,6 +631,9 @@ fgOPTIONS::~fgOPTIONS( void ) {
// $Log$ // $Log$
// Revision 1.40 1999/02/26 22:09:51 curt
// Added initial support for native SGI compilers.
//
// Revision 1.39 1999/02/05 21:29:12 curt // Revision 1.39 1999/02/05 21:29:12 curt
// Modifications to incorporate Jon S. Berndts flight model code. // Modifications to incorporate Jon S. Berndts flight model code.
// //

View file

@ -44,14 +44,14 @@
#include <XGL/xgl.h> #include <XGL/xgl.h>
#include STL_STRING #include STL_STRING
FG_USING_STD(string);
#include <vector> #include <vector>
#include "Include/compiler.h"
FG_USING_STD(vector); FG_USING_STD(vector);
FG_USING_STD(string); FG_USING_STD(string);
// #include "fg_serial.hxx"
#ifdef FG_HAVE_NATIVE_SGI_COMPILERS
FG_USING_NAMESPACE(std);
#endif
typedef vector < string > str_container; typedef vector < string > str_container;
typedef str_container::iterator str_iterator; typedef str_container::iterator str_iterator;
@ -245,6 +245,9 @@ extern fgOPTIONS current_options;
// $Log$ // $Log$
// Revision 1.28 1999/02/26 22:09:52 curt
// Added initial support for native SGI compilers.
//
// Revision 1.27 1999/02/05 21:29:13 curt // Revision 1.27 1999/02/05 21:29:13 curt
// Modifications to incorporate Jon S. Berndts flight model code. // Modifications to incorporate Jon S. Berndts flight model code.
// //

View file

@ -23,7 +23,6 @@
#include <Include/fg_constants.h> #include <Include/fg_constants.h>
// #include <Include/fg_types.h>
#include <Math/mat3.h> #include <Math/mat3.h>
#include <Math/point3d.hxx> #include <Math/point3d.hxx>
#include <Scenery/tile.hxx> #include <Scenery/tile.hxx>
@ -324,6 +323,9 @@ int fgFRAGMENT::intersect( const Point3D& end0,
} }
// $Log$ // $Log$
// Revision 1.7 1999/02/26 22:09:56 curt
// Added initial support for native SGI compilers.
//
// Revision 1.6 1998/10/18 01:17:20 curt // Revision 1.6 1998/10/18 01:17:20 curt
// Point3D tweaks. // Point3D tweaks.
// //

View file

@ -41,18 +41,21 @@
#include <GL/glut.h> #include <GL/glut.h>
#include <XGL/xgl.h> #include <XGL/xgl.h>
#include <Include/compiler.h>
#include <vector> #include <vector>
#include <Bucket/bucketutils.h> #include <Bucket/bucketutils.h>
// #include <Include/fg_types.h> #include <Include/fg_constants.h>
#include "Include/fg_constants.h"
#include <Math/mat3.h> #include <Math/mat3.h>
#include <Math/point3d.hxx> #include <Math/point3d.hxx>
#include <Include/compiler.h>
//FG_USING_NAMESPACE(std);
FG_USING_STD(vector); FG_USING_STD(vector);
#ifdef FG_HAVE_NATIVE_SGI_COMPILERS
FG_USING_NAMESPACE(std);
#endif
// Maximum nodes per tile // Maximum nodes per tile
#define MAX_NODES 2000 #define MAX_NODES 2000
@ -179,6 +182,9 @@ operator == ( const fgFRAGMENT & lhs, const fgFRAGMENT & rhs ) {
// $Log$ // $Log$
// Revision 1.8 1999/02/26 22:09:57 curt
// Added initial support for native SGI compilers.
//
// Revision 1.7 1998/11/02 18:29:00 curt // Revision 1.7 1998/11/02 18:29:00 curt
// Portability changes for the Borland compiler. // Portability changes for the Borland compiler.
// //

View file

@ -33,13 +33,14 @@
#include <GL/glut.h> #include <GL/glut.h>
#include <XGL/xgl.h> #include <XGL/xgl.h>
#include <string.h> #include <Include/compiler.h>
#include <string>
#include <string.h>
#include STL_STRING
#include "Include/fg_stl_config.h"
#include <Debug/logstream.hxx> #include <Debug/logstream.hxx>
#include <Main/options.hxx>
#include <Misc/fgstream.hxx> #include <Misc/fgstream.hxx>
#include <Main/options.hxx>
#include <Main/views.hxx> #include <Main/views.hxx>
#include <Scenery/tile.hxx> #include <Scenery/tile.hxx>
@ -47,6 +48,12 @@
#include "fragment.hxx" #include "fragment.hxx"
#include "texload.h" #include "texload.h"
FG_USING_STD(string);
#ifdef FG_HAVE_NATIVE_SGI_COMPILERS
FG_USING_NAMESPACE(std);
#endif
// global material management class // global material management class
fgMATERIAL_MGR material_mgr; fgMATERIAL_MGR material_mgr;
@ -361,6 +368,9 @@ fgMATERIAL_MGR::render_fragments()
// $Log$ // $Log$
// Revision 1.13 1999/02/26 22:09:58 curt
// Added initial support for native SGI compilers.
//
// Revision 1.12 1998/12/09 18:50:30 curt // Revision 1.12 1998/12/09 18:50:30 curt
// Converted "class fgVIEW" to "class FGView" and updated to make data // Converted "class fgVIEW" to "class FGView" and updated to make data
// members private and make required accessor functions. // members private and make required accessor functions.

View file

@ -35,34 +35,35 @@
#include <GL/glut.h> #include <GL/glut.h>
#include <XGL/xgl.h> #include <XGL/xgl.h>
#if defined ( __sun__ ) // #if defined ( __sun__ )
extern "C" void *memmove(void *, const void *, size_t); // extern "C" void *memmove(void *, const void *, size_t);
extern "C" void *memset(void *, int, size_t); // extern "C" void *memset(void *, int, size_t);
#endif // #endif
#include <string> // Standard C++ library #include <Include/compiler.h>
#include STL_STRING
#include <map> // STL #include <map> // STL
#include <ctype.h> // isdigit() #include <ctype.h> // isdigit()
#ifdef NEEDNAMESPACESTD
using namespace std;
#endif
#include <Debug/logstream.hxx> #include <Debug/logstream.hxx>
#include <Misc/fgstream.hxx>
#include <Include/fg_constants.h> #include <Include/fg_constants.h>
#include <Include/fg_zlib.h>
#include <Main/options.hxx> #include <Main/options.hxx>
#include <Math/mat3.h> #include <Math/mat3.h>
#include <Math/fg_random.h> #include <Math/fg_random.h>
#include <Math/point3d.hxx> #include <Math/point3d.hxx>
#include <Math/polar3d.hxx> #include <Math/polar3d.hxx>
#include <Misc/stopwatch.hxx> #include <Misc/stopwatch.hxx>
#include <Misc/fgstream.hxx>
#include <Scenery/tile.hxx> #include <Scenery/tile.hxx>
#include "material.hxx" #include "material.hxx"
#include "obj.hxx" #include "obj.hxx"
FG_USING_STD(string);
#ifdef FG_HAVE_NATIVE_SGI_COMPILERS
FG_USING_NAMESPACE(std);
#endif
static double normals[MAX_NODES][3]; static double normals[MAX_NODES][3];
@ -555,6 +556,9 @@ int fgObjLoad( const string& path, fgTILE *t) {
// $Log$ // $Log$
// Revision 1.11 1999/02/26 22:09:59 curt
// Added initial support for native SGI compilers.
//
// Revision 1.10 1998/11/06 21:18:18 curt // Revision 1.10 1998/11/06 21:18:18 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

@ -41,18 +41,23 @@
#include <GL/glut.h> #include <GL/glut.h>
#include <XGL/xgl.h> #include <XGL/xgl.h>
#include <vector> #include <Include/compiler.h>
#include <string>
#include "Include/compiler.h" #include <vector>
FG_USING_STD(string); #include STL_STRING
FG_USING_STD(vector);
#include <Bucket/bucketutils.h> #include <Bucket/bucketutils.h>
#include <Math/mat3.h> #include <Math/mat3.h>
#include <Math/point3d.hxx> #include <Math/point3d.hxx>
#include <Objects/fragment.hxx> #include <Objects/fragment.hxx>
FG_USING_STD(string);
FG_USING_STD(vector);
#ifdef FG_HAVE_NATIVE_SGI_COMPILERS
#include <strings.h>
FG_USING_NAMESPACE(std);
#endif
// Scenery tile class // Scenery tile class
class fgTILE { class fgTILE {
@ -157,6 +162,9 @@ private:
// $Log$ // $Log$
// Revision 1.24 1999/02/26 22:10:02 curt
// Added initial support for native SGI compilers.
//
// Revision 1.23 1999/02/02 20:13:41 curt // Revision 1.23 1999/02/02 20:13:41 curt
// MSVC++ portability changes by Bernie Bright: // MSVC++ portability changes by Bernie Bright:
// //

View file

@ -33,9 +33,9 @@
#include <GL/glut.h> #include <GL/glut.h>
#include <XGL/xgl.h> #include <XGL/xgl.h>
#include <Debug/logstream.hxx>
#include <Airports/genapt.hxx> #include <Airports/genapt.hxx>
#include <Bucket/bucketutils.hxx> #include <Bucket/bucketutils.hxx>
#include <Debug/logstream.hxx>
#include <Main/options.hxx> #include <Main/options.hxx>
#include <Main/views.hxx> #include <Main/views.hxx>
#include <Objects/obj.hxx> #include <Objects/obj.hxx>
@ -181,6 +181,9 @@ fgTILECACHE::~fgTILECACHE( void ) {
// $Log$ // $Log$
// Revision 1.22 1999/02/26 22:10:04 curt
// Added initial support for native SGI compilers.
//
// Revision 1.21 1998/12/09 18:50:32 curt // Revision 1.21 1998/12/09 18:50:32 curt
// Converted "class fgVIEW" to "class FGView" and updated to make data // Converted "class fgVIEW" to "class FGView" and updated to make data
// members private and make required accessor functions. // members private and make required accessor functions.

View file

@ -35,8 +35,8 @@
#include <Aircraft/aircraft.hxx> #include <Aircraft/aircraft.hxx>
#include <Bucket/bucketutils.hxx>
#include <Debug/logstream.hxx> #include <Debug/logstream.hxx>
#include <Bucket/bucketutils.hxx>
#include <Include/fg_constants.h> #include <Include/fg_constants.h>
#include <Main/options.hxx> #include <Main/options.hxx>
#include <Main/views.hxx> #include <Main/views.hxx>
@ -758,6 +758,9 @@ void fgTileMgrRender( void ) {
// $Log$ // $Log$
// Revision 1.54 1999/02/26 22:10:05 curt
// Added initial support for native SGI compilers.
//
// Revision 1.53 1999/02/05 21:29:16 curt // Revision 1.53 1999/02/05 21:29:16 curt
// Modifications to incorporate Jon S. Berndts flight model code. // Modifications to incorporate Jon S. Berndts flight model code.
// //

View file

@ -31,20 +31,23 @@
#endif #endif
#include "Include/compiler.h" #include <Include/compiler.h>
#include "Include/fg_callback.hxx" #include <Include/fg_callback.hxx>
#include <deque> // STL double ended queue #include <deque> // STL double ended queue
#include <list> // STL list #include <list> // STL list
#include <string> #include STL_STRING
#include "fg_time.hxx"
#include "timestamp.hxx"
FG_USING_STD(deque); FG_USING_STD(deque);
FG_USING_STD(list); FG_USING_STD(list);
FG_USING_STD(string); FG_USING_STD(string);
#include "fg_time.hxx" #ifdef FG_HAVE_NATIVE_SGI_COMPILERS
#include "timestamp.hxx" FG_USING_NAMESPACE(std);
#endif
class fgEVENT class fgEVENT
{ {
@ -166,6 +169,9 @@ extern fgEVENT_MGR global_events;
// $Log$ // $Log$
// Revision 1.17 1999/02/26 22:10:08 curt
// Added initial support for native SGI compilers.
//
// Revision 1.16 1999/01/09 13:37:43 curt // Revision 1.16 1999/01/09 13:37:43 curt
// Convert fgTIMESTAMP to FGTimeStamp which holds usec instead of ms. // Convert fgTIMESTAMP to FGTimeStamp which holds usec instead of ms.
// //

View file

@ -27,7 +27,7 @@
# include <config.h> # include <config.h>
#endif #endif
#include "Include/compiler.h" #include <Include/compiler.h>
#ifdef FG_HAVE_STD_INCLUDES #ifdef FG_HAVE_STD_INCLUDES
# include <cmath> # include <cmath>
@ -51,9 +51,9 @@
# include <sys/time.h> // for get/setitimer, gettimeofday, struct timeval # include <sys/time.h> // for get/setitimer, gettimeofday, struct timeval
#endif #endif
#include <Debug/logstream.hxx>
#include <Astro/sky.hxx> #include <Astro/sky.hxx>
#include <Astro/solarsystem.hxx> #include <Astro/solarsystem.hxx>
#include <Debug/logstream.hxx>
#include <FDM/flight.hxx> #include <FDM/flight.hxx>
#include <Include/fg_constants.h> #include <Include/fg_constants.h>
#include <Main/options.hxx> #include <Main/options.hxx>
@ -399,6 +399,9 @@ void fgTimeUpdate(FGInterface *f, fgTIME *t) {
// $Log$ // $Log$
// Revision 1.32 1999/02/26 22:10:10 curt
// Added initial support for native SGI compilers.
//
// Revision 1.31 1999/02/05 21:29:18 curt // Revision 1.31 1999/02/05 21:29:18 curt
// Modifications to incorporate Jon S. Berndts flight model code. // Modifications to incorporate Jon S. Berndts flight model code.
// //

View file

@ -39,7 +39,8 @@
# include <config.h> # include <config.h>
#endif #endif
#include "Include/compiler.h" #include <Include/compiler.h>
#ifdef FG_HAVE_STD_INCLUDES #ifdef FG_HAVE_STD_INCLUDES
# include <cmath> # include <cmath>
# include <cstdio> # include <cstdio>
@ -50,10 +51,8 @@
# include <time.h> # include <time.h>
#endif #endif
//#include <Astro/orbits.hxx>
#include <Astro/solarsystem.hxx>
#include <Debug/logstream.hxx> #include <Debug/logstream.hxx>
#include <Astro/solarsystem.hxx>
#include <Include/fg_constants.h> #include <Include/fg_constants.h>
#include <Main/views.hxx> #include <Main/views.hxx>
#include <Math/fg_geodesy.hxx> #include <Math/fg_geodesy.hxx>
@ -435,6 +434,9 @@ void fgUpdateSunPos( void ) {
// $Log$ // $Log$
// Revision 1.20 1999/02/26 22:10:11 curt
// Added initial support for native SGI compilers.
//
// Revision 1.19 1999/01/07 20:25:37 curt // Revision 1.19 1999/01/07 20:25:37 curt
// Portability changes and updates from Bernie Bright. // Portability changes and updates from Bernie Bright.
// //