#include "BalloonSim.h"
-#include "sg.h"
+#include <plib/sg.h>
/****************************************************************************/
/********************************** CODE ************************************/
/****************************************************************************/
/* INCLUDES */
/****************************************************************************/
-#include <sg.h>
+#include <plib/sg.h>
/****************************************************************************/
/* DEFINES */
#ifndef _GUI_H_
#define _GUI_H_
-#include <pu.h> // plib include
+#include <plib/pu.h> // plib include
extern void guiInit();
extern void guiMotionFunc ( int x, int y );
#include <Main/options.hxx>
#if defined( ENABLE_PLIB_JOYSTICK )
-# include <js.h> // plib include
+# include <plib/js.h> // plib include
#elif defined( ENABLE_GLUT_JOYSTICK )
# include <GL/glut.h>
# include <XGL/xgl.h>
-#include "js.h"
+#include <plib/js.h>
int main ( int, char ** )
{
$(top_builddir)/Lib/Math/libMath.a \
$(top_builddir)/Lib/Bucket/libBucket.a \
$(top_builddir)/Lib/Debug/libDebug.a \
- -lpu -lfnt -lssg -lsg \
+ -lplibpu -lplibfnt -lplibssg -lplibsg \
$(top_builddir)/Lib/Misc/libMisc.a \
$(top_builddir)/Lib/zlib/libz.a \
$(opengl_LIBS) \
#include <stdio.h>
#include <stdlib.h>
-#include <pu.h> // plib include
+#include <plib/pu.h> // plib include
#include <Debug/logstream.hxx>
#include <Aircraft/aircraft.hxx>
# include <unistd.h> /* for stat() */
#endif
-#include <pu.h> // plib include
-#include <ssg.h> // plib include
+#include <plib/pu.h> // plib include
+#include <plib/ssg.h> // plib include
#ifdef ENABLE_AUDIO_SUPPORT
-# include <sl.h> // plib include
-# include <sm.h> // plib include
+# include <plib/sl.h> // plib include
+# include <plib/sm.h> // plib include
#endif
#include <Include/fg_constants.h> // for VERSION
# include <config.h>
#endif
-#include <ssg.h> // plib include
+#include <plib/ssg.h> // plib include
#include <Aircraft/aircraft.hxx>
#include <Cockpit/panel.hxx>
#include <list>
-#include <sg.h> // plib include
+#include <plib/sg.h> // plib include
#include <FDM/flight.hxx>
#include <Math/point3d.hxx>
#include <netdb.h> // gethostbyname()
#include <unistd.h> // select(), fsync()/fdatasync()
+#if defined( sgi )
+#include <strings.h>
+#endif
+
#include STL_STRING
#include <Debug/logstream.hxx>
int FGSocket::make_server_socket () {
struct sockaddr_in name;
-#if defined( __CYGWIN__ ) || defined( __CYGWIN32__ )
+#if defined( __CYGWIN__ ) || defined( __CYGWIN32__ ) || defined( sgi )
int length;
#else
socklen_t length;
/* this seems to be missing for glibc-2.0.x */
/* libc5 & glibc-2.1 do have them */
#ifndef MSG_PEEK
-int MSG_PEEK = 0x02; /* Peek at incoming messages. */
-#define MSG_PEEK MSG_PEEK
+#define MSG_PEEK 0x02 /* Peek at incoming messages. */
#endif
#ifndef MSG_WAITALL
-int MSG_WAITALL = 0x100; /* Wait for a full request. */
-#define MSG_WAITALL MSG_WAITALL
+#define MSG_WAITALL 0x100 /* Wait for a full request. */
#endif
/* I prefer NHV's decl. */
#include <Cockpit/hud.hxx>
#include <Include/fg_constants.h>
-#include <ssg.h>
+#include <plib/ssg.h>
#include <Main/views.hxx>
//#define printf //
*/
#include <Main/options.hxx>
-#include <sg.h>
-#include <ssg.h>
+#include <plib/sg.h>
+#include <plib/ssg.h>
int net_blast_toggle, net_hud_display, net_is_registered;
char *net_callsign, *FGFS_host;
#define FGD
-#include <ssg.h>
+#include <plib/ssg.h>
extern char *net_callsign;
extern int net_hud_display;
#include <map> // STL associative "array"
#include <vector> // STL "array"
-#include <ssg.h> // plib include
+#include <plib/ssg.h> // plib include
#include "material.hxx"
#include STL_STRING
-#include <ssg.h> // plib include
+#include <plib/ssg.h> // plib include
#include <Scenery/tileentry.hxx>
#include <GL/glut.h>
#include <XGL/xgl.h>
-#include <ssg.h> // plib include
+#include <plib/ssg.h> // plib include
#include <Debug/logstream.hxx>
#include <Misc/fgstream.hxx>
#include <vector>
#include STL_STRING
-#include <ssg.h> // plib includes
+#include <plib/ssg.h> // plib includes
#include <Bucket/newbucket.hxx>
#include <Math/point3d.hxx>
#include <Objects/fragment.hxx>
-#ifdef FG_HAVE_NATIVE_SGI_COMPILERS
+#if defined( sgi )
#include <strings.h>
#endif
return a < b ? fg_max(b, c) : fg_max(a, c);
}
-inline void sgdSetVec3 ( sgdVec3 dst, sgVec3 src )
-{
- dst [ 0 ] = src [ 0 ] ;
- dst [ 1 ] = src [ 1 ] ;
- dst [ 2 ] = src [ 2 ] ;
-}
-
-inline void sgdSetMat4 ( sgdMat4 dst, sgMat4 src )
-{
- for ( int i = 0; i < 4; ++i ) {
- for ( int j = 0; j < 4; ++j ) {
- dst [ i ] [ j ] = src [ i ] [ j ];
- }
- }
-}
-
// check for an instersection with the individual triangles of a leaf
static bool my_ssg_instersect_leaf( string s, ssgLeaf *leaf, sgdMat4 m,
const sgdVec3 p, const sgdVec3 dir,
#include <GL/glut.h>
#include <XGL/xgl.h>
-#include <sg.h> // plib include
+#include <plib/sg.h> // plib include
#include <Math/interpolater.hxx>
#include <Math/point3d.hxx>
/****************************************************************************/
#include <vector>
-#include <sg.h>
+#include <plib/sg.h>
#include <Math/sphrintp.h>
#include <vector>
#include <map>
-#include <sg.h>
+#include <plib/sg.h>
#include "FGWeatherDefs.h"
#include <vector>
-#include <sg.h>
+#include <plib/sg.h>
#include "FGWeatherDefs.h"
#include "FGPhysicalProperties.h"
#include <stdlib.h>
#include <time.h>
-#include <sg.h>
+#include <plib/sg.h>
#include "FGThunderstorm.h"
# include <windows.h>
#endif
-#include <sg.h>
+#include <plib/sg.h>
#include "FGWeatherDefs.h"
/****************************************************************************/
#include <Include/compiler.h>
-#include <sg.h>
+#include <plib/sg.h>
#include "FGWeatherDefs.h"
# include <windows.h>
#endif
-#include <sg.h>
+#include <plib/sg.h>
#include "FGWeatherDefs.h"