]> git.mxchange.org Git - flightgear.git/commitdiff
Borland portability tweaks.
authorcurt <curt>
Mon, 23 Nov 1998 21:46:36 +0000 (21:46 +0000)
committercurt <curt>
Mon, 23 Nov 1998 21:46:36 +0000 (21:46 +0000)
Math/MAT3mat.c
Math/point3d.hxx
XGL/xglUtils.c

index 6eb74cb1cab30d81348406a912378643f5f482d5..9a1e7c9911641fa46baa2cf29e4097a5490e369d 100644 (file)
@@ -11,7 +11,9 @@
 #endif
 
 #ifdef WIN32
-#  include <memory.h>      /* required for memset() and memcpy() */
+#  ifndef HAVE_STL_SGI_PORT
+#    include <memory.h>      /* required for memset() and memcpy() */
+#  endif
 #endif
 
 #include <string.h>
index 30054bd0fdf75e883777786b49e6d0c744c4cb6a..299f71e87d890e5c6611ca0cd9153ef82cc3ce35 100644 (file)
 
 #include <iostream>
 #include <assert.h>
-#include <math.h>
-
+#if defined( __BORLANDC__ )
+#  define exception c_exception
+#elif defined( __FreeBSD__ )
+#  include <math.h>
+#endif
 
 const double fgPoint3_Epsilon = 0.0000001;
 
@@ -295,6 +298,9 @@ Point3D::distance3D(const Point3D& a ) const
 
 
 // $Log$
+// Revision 1.6  1998/11/23 21:46:37  curt
+// Borland portability tweaks.
+//
 // Revision 1.5  1998/11/20 01:00:38  curt
 // Patch in fgGeoc2Geod() to avoid a floating explosion.
 // point3d.hxx include math.h for FreeBSD
index bc5d7217e11f4f417c546bf4b914e04693f42cce..971c353b4d9ec0edbb9d2308c0f2bd718043480e 100644 (file)
@@ -5,16 +5,18 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
 #if !defined( __CYGWIN__ ) && !defined( __CYGWIN32__ )
-#  include <malloc.h>
+#  if !defined( HAVE_STL_SGI_PORT )    // Avoid malloc with STLport
+#    include <malloc.h>
+#  endif
 #endif
 
 #ifdef HAVE_UNISTD_H
 #  include <unistd.h>
 #endif
 
-#include <string.h>
 
 #include "xgl.h"