freebsd-ports/games/torcs/files/patch-src_drivers_olethros_geometry.cpp
Mark Linimon 4ffa3a21d7 Fails with base GCC, needs to have USES=compiler:c++11-lang.
Additionally, a fix for isnan() being not detected.

Also, add USES=gl.

PR:		232680
Submitted by:	Piotr Kubaj
Approved by:	maintainer
2018-11-05 20:31:46 +00:00

11 lines
357 B
C++

--- src/drivers/olethros/geometry.cpp.orig 2018-10-25 14:35:19 UTC
+++ src/drivers/olethros/geometry.cpp
@@ -370,7 +370,7 @@ void EstimateSphere (std::vector<Vector> P, Parametric
}
delta_total += delta;
}
- if (isnan(r)) {
+ if (std::isnan(r)) {
for (i=0; i<d; i++) {
center[i] = ((*(sphere->C))[i] - mean[i]) / scale;
}