]> git.mxchange.org Git - flightgear.git/commitdiff
Tweak for solaris.
authorcurt <curt>
Wed, 27 Jan 1999 04:45:17 +0000 (04:45 +0000)
committercurt <curt>
Wed, 27 Jan 1999 04:45:17 +0000 (04:45 +0000)
compiler.h
config.h.in
fg_constants.h

index 0e03fb0b7a5e7f1b4ad50a6bfb163b85cae2a2e8..4f7789d5f7842eb267c1a0247556b88a5d569c51 100644 (file)
 
 #endif // __BORLANDC__
 
+#if defined ( sun )
+  extern "C" {
+      extern void *memmove(void *, const void *, size_t);
+  }
+#endif
+
 //
 // No user modifiable definitions beyond here.
 //
@@ -264,6 +270,9 @@ inline const_mem_fun_ref_t<_Ret,_Tp> mem_fun_ref(_Ret (_Tp::*__f)() const)
 #endif // _COMPILER_H
 
 // $Log$
+// Revision 1.6  1999/01/27 04:45:17  curt
+// Tweak for solaris.
+//
 // Revision 1.5  1999/01/19 20:41:25  curt
 // Added support for MacOS (Metrowerks)
 //
index e0a809ad30b2e34bbaf24085ba294159d608cb9e..9512e5fbe26e8bb4b018ab35ab46f67b3f472e0d 100644 (file)
 /* Define if you have the <getopt.h> header file.  */
 #undef HAVE_GETOPT_H
 
+/* Define if you have the <gpc.h> header file.  */
+#undef HAVE_GPC_H
+
 /* Define if you have the <malloc.h> header file.  */
 #undef HAVE_MALLOC_H
 
index ba5764050b3c7205f2a86b54c6795ada92419252..8dcf18d980afb6b4be83a881e301f062a502f4e6 100644 (file)
 #  include <config.h>
 #endif
 
-#include <math.h>
+#include "Include/compiler.h"
 
+#ifdef FG_MATCH_EXCEPTION_CLASH
+#  define exception C_exception
+#endif
+
+#ifdef FG_HAVE_STD_INCLUDES
+#  include <cmath>
+#else
+#  include <math.h>
+#endif
 
 /* This should be defined via autoconf in configure.in */
 #ifndef VERSION
@@ -63,6 +72,9 @@
 // PI / 4
 #define FG_PI_4     0.78539816339744830961
 
+#ifndef M_E
+#  define M_E     2.7182818284590452354
+#endif
 
 /* ONE_SECOND is pi/180/60/60, or about 100 feet at earths' equator */
 #define ONE_SECOND 4.848136811E-6
 #define EPS   0.081819221
 #define INVG  0.031080997
 
-
 /* Time Related Parameters */
 
 #define MJD0  2415020.0
 
 
 /* $Log$
-/* Revision 1.9  1998/08/24 20:02:35  curt
-/* Added ONE_SECOND (in radians)
+/* Revision 1.10  1999/01/27 04:45:19  curt
+/* Tweak for solaris.
 /*
+ * Revision 1.9  1998/08/24 20:02:35  curt
+ * Added ONE_SECOND (in radians)
+ *
  * Revision 1.8  1998/07/12 03:07:13  curt
  * Added #ifdef HAVE_CONFIG_H ...
  *