--- lib3d/rect3d.h.orig	Mon May 31 13:35:08 1999
+++ lib3d/rect3d.h	Mon May 31 13:38:48 1999
@@ -31,8 +31,13 @@
   pnt	Center() const
         {return (low+high)/2;};
 
+#if defined(__GNUC__) && (__GNUC__ < 2 || __GNUC_MINOR__ < 91)
   void	MakeBoundingBox(const pnts& pts, pnt::coord& farthestDist) {
     pnt::coord d;
+#else
+  void	MakeBoundingBox(const pnts& pts, typename pnt::coord& farthestDist) {
+    typename pnt::coord d;
+#endif
     
     farthestDist= 0;
     if (pts.Num()==0) {
@@ -45,7 +50,11 @@
     high= pts[0];
     
     forii(pts.Num()) {
+#if defined(__GNUC__) && (__GNUC__ < 2 || __GNUC_MINOR__ < 91)
       d= (pnt::coord) pts[i].Dist();
+#else
+      d= (typename pnt::coord) pts[i].Dist();
+#endif
       if (d >farthestDist)
 	farthestDist= d;
       low.SetMin(pts[i]);
