From owner-svn-ports-all@freebsd.org Sat Apr 30 04:31:00 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7F906A9DD9D; Sat, 30 Apr 2016 04:31:00 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 40D0C1DDA; Sat, 30 Apr 2016 04:31:00 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u3U4UxfT063300; Sat, 30 Apr 2016 04:30:59 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u3U4Uxqv063295; Sat, 30 Apr 2016 04:30:59 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201604300430.u3U4Uxqv063295@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Sat, 30 Apr 2016 04:30:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r414327 - head/graphics/inventor/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Apr 2016 04:31:00 -0000 Author: pi Date: Sat Apr 30 04:30:58 2016 New Revision: 414327 URL: https://svnweb.freebsd.org/changeset/ports/414327 Log: graphics/inventor: Fix build with libc++ 3.8.0 PR: 208845 Submitted by: dim Approved by: c47g@gmx.at (maintainer timeout) Added: head/graphics/inventor/files/patch-arc.c++ (contents, props changed) head/graphics/inventor/files/patch-arctess.c++ (contents, props changed) head/graphics/inventor/files/patch-ccw.c++ (contents, props changed) head/graphics/inventor/files/patch-simplemath.h (contents, props changed) head/graphics/inventor/files/patch-softsurfeval.c++ (contents, props changed) Added: head/graphics/inventor/files/patch-arc.c++ ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/inventor/files/patch-arc.c++ Sat Apr 30 04:30:58 2016 (r414327) @@ -0,0 +1,11 @@ +--- lib/database/src/so/nodes/nurbs/libnurbs/arc.c++.orig 2000-08-15 12:56:22 UTC ++++ lib/database/src/so/nodes/nurbs/libnurbs/arc.c++ +@@ -332,7 +332,7 @@ Arc::check( void ) + + inline long tooclose( REAL x, REAL y ) + { +- return (abs(x-y) < TOL) ? 1 : 0; ++ return (absr(x-y) < TOL) ? 1 : 0; + } + + Added: head/graphics/inventor/files/patch-arctess.c++ ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/inventor/files/patch-arctess.c++ Sat Apr 30 04:30:58 2016 (r414327) @@ -0,0 +1,35 @@ +--- lib/database/src/so/nodes/nurbs/libnurbs/arctess.c++.orig 2000-08-15 12:56:22 UTC ++++ lib/database/src/so/nodes/nurbs/libnurbs/arctess.c++ +@@ -247,8 +247,8 @@ ArcTessellator::pwl( Arc *arc, REAL s1, + + /* if(rate <= 0.06) rate = 0.06;*/ + +- int snsteps = 1 + (int) (abs(s2 - s1) / rate ); +- int tnsteps = 1 + (int) (abs(t2 - t1) / rate ); ++ int snsteps = 1 + (int) (absr(s2 - s1) / rate ); ++ int tnsteps = 1 + (int) (absr(t2 - t1) / rate ); + int nsteps = max(1,max( snsteps, tnsteps )); + + REAL sstepsize = (s2 - s1) / (REAL) nsteps; +@@ -395,8 +395,8 @@ ArcTessellator::tessellateNonlinear( Arc + vert->param[0] = u/w; + vert->param[1] = v/w; + #ifndef NOELIMINATION +- REAL ds = abs(vert[0].param[0] - vert[-1].param[0]); +- REAL dt = abs(vert[0].param[1] - vert[-1].param[1]); ++ REAL ds = absr(vert[0].param[0] - vert[-1].param[0]); ++ REAL dt = absr(vert[0].param[1] - vert[-1].param[1]); + int canremove = (dsparam[0] = u; + vert->param[1] = v; + #ifndef NOELIMINATION +- REAL ds = abs(vert[0].param[0] - vert[-1].param[0]); +- REAL dt = abs(vert[0].param[1] - vert[-1].param[1]); ++ REAL ds = absr(vert[0].param[0] - vert[-1].param[0]); ++ REAL dt = absr(vert[0].param[1] - vert[-1].param[1]); + int canremove = (ds