From 180e2188ba799eef53499a205513d8a3290ee730 Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 19 Jan 1999 20:56:53 +0000 Subject: [PATCH] MacOS portability changes contributed by "Robert Puyol" --- Bucket/bucketutils.hxx | 5 +++++ Math/point3d.hxx | 8 ++++++++ XGL/xglUtils.c | 3 ++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Bucket/bucketutils.hxx b/Bucket/bucketutils.hxx index 3145871e..852b8af7 100644 --- a/Bucket/bucketutils.hxx +++ b/Bucket/bucketutils.hxx @@ -29,6 +29,8 @@ #include +FG_USING_NAMESPACE(std); + #include "bucketutils.h" #include @@ -69,6 +71,9 @@ operator<< ( ostream& out, const fgBUCKET& b ) // $Log$ +// Revision 1.2 1999/01/19 20:56:53 curt +// MacOS portability changes contributed by "Robert Puyol" +// // Revision 1.1 1998/11/09 23:42:12 curt // Initial revision. // diff --git a/Math/point3d.hxx b/Math/point3d.hxx index 299f71e8..a6fe84a3 100644 --- a/Math/point3d.hxx +++ b/Math/point3d.hxx @@ -39,6 +39,11 @@ # include #endif +// -rp- assert.h is buggy under MWCWP3, as multiple #include undef assert ! +#ifdef __MWERKS__ +# define assert(x) +#endif + const double fgPoint3_Epsilon = 0.0000001; enum {PX, PY, PZ}; // axes @@ -298,6 +303,9 @@ Point3D::distance3D(const Point3D& a ) const // $Log$ +// Revision 1.7 1999/01/19 20:56:58 curt +// MacOS portability changes contributed by "Robert Puyol" +// // Revision 1.6 1998/11/23 21:46:37 curt // Borland portability tweaks. // diff --git a/XGL/xglUtils.c b/XGL/xglUtils.c index 971c353b..56da1652 100644 --- a/XGL/xglUtils.c +++ b/XGL/xglUtils.c @@ -8,7 +8,8 @@ #include #if !defined( __CYGWIN__ ) && !defined( __CYGWIN32__ ) -# if !defined( HAVE_STL_SGI_PORT ) // Avoid malloc with STLport +# if !defined( HAVE_STL_SGI_PORT ) && !defined( __MWERKS__ ) +// Avoid malloc with STLport and MSL # include # endif #endif -- 2.39.5