From: curt Date: Mon, 23 Nov 1998 21:46:36 +0000 (+0000) Subject: Borland portability tweaks. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d7748704d77d31e76b3da3a1f95bd7bbab456377;p=simgear.git Borland portability tweaks. --- diff --git a/Math/MAT3mat.c b/Math/MAT3mat.c index 6eb74cb1..9a1e7c99 100644 --- a/Math/MAT3mat.c +++ b/Math/MAT3mat.c @@ -11,7 +11,9 @@ #endif #ifdef WIN32 -# include /* required for memset() and memcpy() */ +# ifndef HAVE_STL_SGI_PORT +# include /* required for memset() and memcpy() */ +# endif #endif #include diff --git a/Math/point3d.hxx b/Math/point3d.hxx index 30054bd0..299f71e8 100644 --- a/Math/point3d.hxx +++ b/Math/point3d.hxx @@ -33,8 +33,11 @@ #include #include -#include - +#if defined( __BORLANDC__ ) +# define exception c_exception +#elif defined( __FreeBSD__ ) +# include +#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 diff --git a/XGL/xglUtils.c b/XGL/xglUtils.c index bc5d7217..971c353b 100644 --- a/XGL/xglUtils.c +++ b/XGL/xglUtils.c @@ -5,16 +5,18 @@ #include #include +#include #if !defined( __CYGWIN__ ) && !defined( __CYGWIN32__ ) -# include +# if !defined( HAVE_STL_SGI_PORT ) // Avoid malloc with STLport +# include +# endif #endif #ifdef HAVE_UNISTD_H # include #endif -#include #include "xgl.h"