1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/graphics/inventor/files/patch-softsurfeval.c++
Kurt Jaeger c139d54c7f graphics/inventor: Fix build with libc++ 3.8.0
PR:		208845
Submitted by:	dim
Approved by:	c47g@gmx.at (maintainer timeout)
2016-04-30 04:30:58 +00:00

14 lines
556 B
C++

--- lib/database/src/so/nodes/nurbs/clients/softsurfeval.c++.orig 2000-08-15 12:56:22 UTC
+++ lib/database/src/so/nodes/nurbs/clients/softsurfeval.c++
@@ -50,8 +50,8 @@
#include "softsurfeval.h"
#include "nurbsconsts.h"
-inline REAL abs( REAL x ) { return (x < 0.0) ? -x : x; }
-inline int equal( REAL x, REAL y ) { return (abs(x-y) < 1.0E-6) ? 1 : 0; }
+inline REAL absr( REAL x ) { return (x < 0.0) ? -x : x; }
+inline int equal( REAL x, REAL y ) { return (absr(x-y) < 1.0E-6) ? 1 : 0; }
_SoNurbsSurfaceEvaluator::~_SoNurbsSurfaceEvaluator()
{