1
0
Fork 0

Minor changes to compile with rsxnt/win32.

This commit is contained in:
curt 1997-06-25 15:39:44 +00:00
parent 189c638b34
commit 80713ee205
10 changed files with 70 additions and 20 deletions

View file

@ -51,7 +51,7 @@ $(TARGET): $(OFILES) $(HFILES)
all: $(TARGET) all: $(TARGET)
clean: clean:
rm -f *.o $(TARGET) *~ core rm -f *.o $(TARGET) lib*.a *~ core
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
@ -67,6 +67,9 @@ aircraft.h: ../Flight/flight.h ../Controls/controls.h
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
# $Log$ # $Log$
# Revision 1.4 1997/06/25 15:39:44 curt
# Minor changes to compile with rsxnt/win32.
#
# Revision 1.3 1997/06/21 17:12:42 curt # Revision 1.3 1997/06/21 17:12:42 curt
# Capitalized subdirectory names. # Capitalized subdirectory names.
# #

View file

@ -29,6 +29,10 @@
#include "aircraft.h" #include "aircraft.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846 /* pi */
#endif
#define FG_RAD_2_DEG(RAD) ((RAD) * 180.0 / M_PI) #define FG_RAD_2_DEG(RAD) ((RAD) * 180.0 / M_PI)
/* Display various parameters to stdout */ /* Display various parameters to stdout */
@ -49,9 +53,12 @@ void aircraft_debug(int type) {
/* $Log$ /* $Log$
/* Revision 1.7 1997/06/02 03:01:39 curt /* Revision 1.8 1997/06/25 15:39:45 curt
/* Working on views (side, front, back, transitions, etc.) /* Minor changes to compile with rsxnt/win32.
/* /*
* Revision 1.7 1997/06/02 03:01:39 curt
* Working on views (side, front, back, transitions, etc.)
*
* Revision 1.6 1997/05/31 19:16:26 curt * Revision 1.6 1997/05/31 19:16:26 curt
* Elevator trim added. * Elevator trim added.
* *

View file

@ -51,7 +51,7 @@ $(TARGET): $(OFILES)
all: $(TARGET) all: $(TARGET)
clean: clean:
rm -f *.o $(TARGET) *~ core rm -f *.o $(TARGET) lib*.a *~ core
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
@ -67,6 +67,9 @@ controls.o: controls.c controls.h ../Aircraft/aircraft.h
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
# $Log$ # $Log$
# Revision 1.5 1997/06/25 15:39:46 curt
# Minor changes to compile with rsxnt/win32.
#
# Revision 1.4 1997/06/21 17:12:47 curt # Revision 1.4 1997/06/21 17:12:47 curt
# Capitalized subdirectory names. # Capitalized subdirectory names.
# #

View file

@ -50,7 +50,7 @@ $(TARGET): $(OFILES)
all: $(TARGET) all: $(TARGET)
clean: clean:
rm -f *.o $(TARGET) *~ core rm -f *.o $(TARGET) lib*.a *~ core
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
@ -66,6 +66,9 @@ flight.o: flight.c flight.h
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
# $Log$ # $Log$
# Revision 1.5 1997/06/25 15:39:46 curt
# Minor changes to compile with rsxnt/win32.
#
# Revision 1.4 1997/06/21 17:12:48 curt # Revision 1.4 1997/06/21 17:12:48 curt
# Capitalized subdirectory names. # Capitalized subdirectory names.
# #

View file

@ -32,6 +32,10 @@
#include "GLUTkey.h" #include "GLUTkey.h"
#include "../Aircraft/aircraft.h" #include "../Aircraft/aircraft.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846 /* pi */
#endif
extern double fogDensity; extern double fogDensity;
extern double goal_view_offset; extern double goal_view_offset;
@ -152,9 +156,12 @@ void GLUTspecialkey(int k, int x, int y) {
/* $Log$ /* $Log$
/* Revision 1.12 1997/06/21 17:12:52 curt /* Revision 1.13 1997/06/25 15:39:46 curt
/* Capitalized subdirectory names. /* Minor changes to compile with rsxnt/win32.
/* /*
* Revision 1.12 1997/06/21 17:12:52 curt
* Capitalized subdirectory names.
*
* Revision 1.11 1997/06/18 04:10:31 curt * Revision 1.11 1997/06/18 04:10:31 curt
* A couple more runway tweaks ... * A couple more runway tweaks ...
* *

View file

@ -47,10 +47,19 @@
#define DEG_TO_RAD 0.017453292 #define DEG_TO_RAD 0.017453292
#define RAD_TO_DEG 57.29577951 #define RAD_TO_DEG 57.29577951
#ifndef M_PI
#define M_PI 3.14159265358979323846 /* pi */
#endif
#ifndef PI2 #ifndef PI2
#define PI2 (M_PI + M_PI) #define PI2 (M_PI + M_PI)
#endif #endif
#ifndef M_PI_2
#define M_PI_2 1.57079632679489661923 /* pi/2 */
#endif
/* This is a record containing all the info for the aircraft currently /* This is a record containing all the info for the aircraft currently
being operated */ being operated */
struct aircraft_params current_aircraft; struct aircraft_params current_aircraft;
@ -544,9 +553,12 @@ int main( int argc, char *argv[] ) {
/* $Log$ /* $Log$
/* Revision 1.21 1997/06/22 21:44:41 curt /* Revision 1.22 1997/06/25 15:39:47 curt
/* Working on intergrating the VRML (subset) parser. /* Minor changes to compile with rsxnt/win32.
/* /*
* Revision 1.21 1997/06/22 21:44:41 curt
* Working on intergrating the VRML (subset) parser.
*
* Revision 1.20 1997/06/21 17:12:53 curt * Revision 1.20 1997/06/21 17:12:53 curt
* Capitalized subdirectory names. * Capitalized subdirectory names.
* *

View file

@ -53,12 +53,12 @@ INTERFACE_FILES = GLUTkey.c
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
# For OpenGL # For OpenGL
# GRAPHICS_LIBS = -lGLU -lGL -lXmu -lX11 GRAPHICS_LIBS = -lGLU -lGL -lXmu -lX11
# For Mesa # For Mesa
MESA_LIBS = -L/usr/lib/mesa -lMesatk -lMesaaux -lMesaGLU -lMesaGL # MESA_LIBS = -L/usr/lib/mesa -lMesatk -lMesaaux -lMesaGLU -lMesaGL
X11_LIBS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11 # X11_LIBS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11
GRAPHICS_LIBS = $(MESA_LIBS) $(X11_LIBS) # GRAPHICS_LIBS = $(MESA_LIBS) $(X11_LIBS)
CFLAGS = $(STD_CFLAGS) $(INTERFACE_FLAGS) CFLAGS = $(STD_CFLAGS) $(INTERFACE_FLAGS)
@ -83,7 +83,7 @@ $(TARGET): $(OFILES) $(AFILES)
all: $(TARGET) all: $(TARGET)
clean: clean:
rm -f *.o $(TARGET) *~ core rm -f *.o $(TARGET) lib*.a *~ core
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
@ -106,6 +106,9 @@ mesh2GL.o: mesh2GL.c ../Scenery/mesh.h
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
# $Log$ # $Log$
# Revision 1.15 1997/06/25 15:39:47 curt
# Minor changes to compile with rsxnt/win32.
#
# Revision 1.14 1997/06/21 17:52:23 curt # Revision 1.14 1997/06/21 17:52:23 curt
# Continue directory shuffling ... everything should be compilable/runnable # Continue directory shuffling ... everything should be compilable/runnable
# again. # again.

View file

@ -49,7 +49,7 @@ $(TARGET): $(OFILES) $(HFILES)
$(AR) rv $(TARGET) $(OFILES) $(AR) rv $(TARGET) $(OFILES)
clean: clean:
rm -f *.o $(TARGET) *~ core rm -f *.o $(TARGET) lib*.a *~ core
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
@ -65,6 +65,9 @@ mesh.o: mesh.c mesh.h common.h
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
# $Log$ # $Log$
# Revision 1.9 1997/06/25 15:39:48 curt
# Minor changes to compile with rsxnt/win32.
#
# Revision 1.8 1997/06/21 17:58:07 curt # Revision 1.8 1997/06/21 17:58:07 curt
# directory shuffling ... # directory shuffling ...
# #

View file

@ -50,7 +50,7 @@ $(TARGET): $(OFILES)
all: $(TARGET) all: $(TARGET)
clean: clean:
rm -f *.o $(TARGET) *~ core rm -f *.o $(TARGET) lib*.a *~ core
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
@ -63,6 +63,9 @@ slew.o: slew.c slew.h ../../Aircraft/aircraft.h ../../Controls/controls.h
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
# $Log$ # $Log$
# Revision 1.3 1997/06/25 15:39:46 curt
# Minor changes to compile with rsxnt/win32.
#
# Revision 1.2 1997/06/21 17:12:51 curt # Revision 1.2 1997/06/21 17:12:51 curt
# Capitalized subdirectory names. # Capitalized subdirectory names.
# #

View file

@ -34,8 +34,10 @@
unsigned long int fgSimTime; unsigned long int fgSimTime;
static struct itimerval t, ot;
static void (*callbackfunc)(int multi_loop); #ifdef HAVE_ITIMER
static struct itimerval t, ot;
static void (*callbackfunc)(int multi_loop);
/* This routine catches the SIGALRM */ /* This routine catches the SIGALRM */
@ -78,6 +80,7 @@ void fgTimerInit(float dt, void (*f)()) {
} }
} }
#endif HAVE_ITIMER
/* This function returns the number of milleseconds since the last /* This function returns the number of milleseconds since the last
time it was called. */ time it was called. */
@ -106,9 +109,12 @@ int fgGetTimeInterval() {
/* $Log$ /* $Log$
/* Revision 1.3 1997/06/17 16:52:04 curt /* Revision 1.4 1997/06/25 15:39:49 curt
/* Timer interval stuff now uses gettimeofday() instead of ftime() /* Minor changes to compile with rsxnt/win32.
/* /*
* Revision 1.3 1997/06/17 16:52:04 curt
* Timer interval stuff now uses gettimeofday() instead of ftime()
*
* Revision 1.2 1997/06/17 03:41:10 curt * Revision 1.2 1997/06/17 03:41:10 curt
* Nonsignal based interval timing is now working. * Nonsignal based interval timing is now working.
* This would be a good time to look at cleaning up the code structure a bit. * This would be a good time to look at cleaning up the code structure a bit.