]> git.mxchange.org Git - flightgear.git/commitdiff
Minor changes to compile with rsxnt/win32.
authorcurt <curt>
Wed, 25 Jun 1997 15:39:44 +0000 (15:39 +0000)
committercurt <curt>
Wed, 25 Jun 1997 15:39:44 +0000 (15:39 +0000)
Aircraft/Makefile
Aircraft/aircraft.c
Controls/Makefile
FDM/Makefile
Main/GLUTkey.c
Main/GLmain.c
Main/Makefile
Scenery/Makefile
Slew/Makefile
Time/fg_timer.c

index dbe37f3b1ec0f436fb0c58c51221dd9b05794ec8..2ba423b7ce17bae5628af46a8fe9400f769e151c 100644 (file)
@@ -51,7 +51,7 @@ $(TARGET): $(OFILES) $(HFILES)
 all: $(TARGET)
 
 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$
+# 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
 # Capitalized subdirectory names.
 #
index af285f13c7af6b8cd48bbe3cf8cac12cccd6980c..7ba67ad2a3f96a5cb6dcbe6d9ebfd8d2143d421b 100644 (file)
 
 #include "aircraft.h"
 
+#ifndef M_PI
+#define M_PI        3.14159265358979323846     /* pi */
+#endif
+
 #define FG_RAD_2_DEG(RAD) ((RAD) * 180.0 / M_PI)
 
 /* Display various parameters to stdout */
@@ -49,9 +53,12 @@ void aircraft_debug(int type) {
 
 
 /* $Log$
-/* Revision 1.7  1997/06/02 03:01:39  curt
-/* Working on views (side, front, back, transitions, etc.)
+/* Revision 1.8  1997/06/25 15:39:45  curt
+/* 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
  * Elevator trim added.
  *
index 5d5b15f4b2ef0179ac27c344f8abf2a8f68d794f..baa1e8bfb4e1fad7dc2e72eaa7aa9ed4aadea5ed 100644 (file)
@@ -51,7 +51,7 @@ $(TARGET): $(OFILES)
 all: $(TARGET)
 
 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$
+# 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
 # Capitalized subdirectory names.
 #
index 4e90b231f8fa54d25d1a1e654e75487f59cb62b1..26a9ea058a5fa13bc5f1e05f59c19f9ab1833706 100644 (file)
@@ -50,7 +50,7 @@ $(TARGET): $(OFILES)
 all: $(TARGET)
 
 clean:
-       rm -f *.o $(TARGET) *~ core
+       rm -f *.o $(TARGET) lib*.a *~ core
 
 
 #---------------------------------------------------------------------------
@@ -66,6 +66,9 @@ flight.o: flight.c flight.h
 
 #---------------------------------------------------------------------------
 # $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
 # Capitalized subdirectory names.
 #
index 4c451f1e6eb90a78ca3d2b384ccd225f00cc467c..84c86f36ddb5e3df6cfe3bf6617ef8b4ecd58013 100644 (file)
 #include "GLUTkey.h"
 #include "../Aircraft/aircraft.h"
 
+#ifndef M_PI
+#define M_PI        3.14159265358979323846     /* pi */
+#endif
+
 extern double fogDensity;
 extern double goal_view_offset;
 
@@ -152,9 +156,12 @@ void GLUTspecialkey(int k, int x, int y) {
 
 
 /* $Log$
-/* Revision 1.12  1997/06/21 17:12:52  curt
-/* Capitalized subdirectory names.
+/* Revision 1.13  1997/06/25 15:39:46  curt
+/* 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
  * A couple more runway tweaks ...
  *
index 23c5245a61d8400675cf41a9550216a0c427609f..0b9483a0fa22a3ebf935f388e5bb9475c264e470 100644 (file)
 #define DEG_TO_RAD       0.017453292
 #define RAD_TO_DEG       57.29577951
 
+#ifndef M_PI
+#define M_PI        3.14159265358979323846     /* pi */
+#endif
+
 #ifndef PI2                                     
 #define PI2  (M_PI + M_PI)
 #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
    being operated */
 struct aircraft_params current_aircraft;
@@ -544,9 +553,12 @@ int main( int argc, char *argv[] ) {
 
 
 /* $Log$
-/* Revision 1.21  1997/06/22 21:44:41  curt
-/* Working on intergrating the VRML (subset) parser.
+/* Revision 1.22  1997/06/25 15:39:47  curt
+/* 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
  * Capitalized subdirectory names.
  *
index 3b8e0a0bcb492c1dfa5b33d7c983d249b0942e63..f60c695f5718c99895f5978748b0b1a1fcbddc0d 100644 (file)
@@ -53,12 +53,12 @@ INTERFACE_FILES = GLUTkey.c
 #---------------------------------------------------------------------------
 
 # For OpenGL
-GRAPHICS_LIBS = -lGLU -lGL -lXmu -lX11
+GRAPHICS_LIBS = -lGLU -lGL -lXmu -lX11
 
 # For Mesa
-MESA_LIBS = -L/usr/lib/mesa -lMesatk -lMesaaux -lMesaGLU -lMesaGL
-X11_LIBS =  -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11
-GRAPHICS_LIBS = $(MESA_LIBS) $(X11_LIBS)
+MESA_LIBS = -L/usr/lib/mesa -lMesatk -lMesaaux -lMesaGLU -lMesaGL
+X11_LIBS =  -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11
+GRAPHICS_LIBS = $(MESA_LIBS) $(X11_LIBS)
 
 
 CFLAGS = $(STD_CFLAGS) $(INTERFACE_FLAGS)
@@ -83,7 +83,7 @@ $(TARGET): $(OFILES) $(AFILES)
 all: $(TARGET)
 
 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$
+# 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
 # Continue directory shuffling ... everything should be compilable/runnable
 # again.
index 081c9ce4cc09e67d3fbb78ebaffe39d7d50b4a1a..b0e0e3a87516c92ac1213de0b416249de563f059 100644 (file)
@@ -49,7 +49,7 @@ $(TARGET): $(OFILES) $(HFILES)
        $(AR) rv $(TARGET) $(OFILES)
 
 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$
+# 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
 # directory shuffling ...
 #
index 12f869ec103eaa423fd4dba2ec06b02e81e5c779..6faec02e6b63082babfd7389333fe75bd52eec4f 100644 (file)
@@ -50,7 +50,7 @@ $(TARGET): $(OFILES)
 all: $(TARGET)
 
 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$
+# 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
 # Capitalized subdirectory names.
 #
index 5e0c7a59a6cd3bbb09dccbbed83566364b320761..71a196019b95186a0b5ec584fd36c9a78470a2d2 100644 (file)
 
 
 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 */
@@ -78,6 +80,7 @@ void fgTimerInit(float dt, void (*f)()) {
     }
 }
 
+#endif HAVE_ITIMER
 
 /* This function returns the number of milleseconds since the last
    time it was called. */
@@ -106,9 +109,12 @@ int fgGetTimeInterval() {
 
 
 /* $Log$
-/* Revision 1.3  1997/06/17 16:52:04  curt
-/* Timer interval stuff now uses gettimeofday() instead of ftime()
+/* Revision 1.4  1997/06/25 15:39:49  curt
+/* 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
  * Nonsignal based interval timing is now working.
  * This would be a good time to look at cleaning up the code structure a bit.