svn commit: r416111 - head/graphics/embree/files
Alexey Dokuchaev
danfe at FreeBSD.org
Sun May 29 15:02:05 UTC 2016
Author: danfe
Date: Sun May 29 15:02:03 2016
New Revision: 416111
URL: https://svnweb.freebsd.org/changeset/ports/416111
Log:
Disable some overloaded math functions for libc++ 3.8.0 and higher, and thus
unbreak the build.
This is because this port defines its own versions of a number of <cmath>
functions, which cause the ambiguity. These functions are only declared in
<cmath> for libc++ 3.8.0 and later, so fix it by disabling the custom
functions for those versions of libc++.
PR: 209652
Submitted by: dim
Modified:
head/graphics/embree/files/patch-common_math_math.h
Modified: head/graphics/embree/files/patch-common_math_math.h
==============================================================================
--- head/graphics/embree/files/patch-common_math_math.h Sun May 29 14:29:30 2016 (r416110)
+++ head/graphics/embree/files/patch-common_math_math.h Sun May 29 15:02:03 2016 (r416111)
@@ -1,5 +1,14 @@
--- common/math/math.h.orig 2016-05-20 05:45:13 UTC
+++ common/math/math.h
+@@ -83,7 +83,7 @@ namespace embree
+ return _mm_cvtss_f32(c);
+ }
+
+-#if !defined(__WIN32__)
++#if !defined(__WIN32__) && (!defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 3800)
+ __forceinline float abs ( const float x ) { return ::fabsf(x); }
+ __forceinline float acos ( const float x ) { return ::acosf (x); }
+ __forceinline float asin ( const float x ) { return ::asinf (x); }
@@ -179,7 +179,7 @@ namespace embree
}
#endif
More information about the svn-ports-head
mailing list