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
This commit is contained in:
parent
e54d3ef7e2
commit
4ffa3a21d7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=484220
@ -19,7 +19,8 @@ RUN_DEPENDS= bash:shells/bash
|
||||
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
|
||||
USES= compiler:c++11-lang cpe gmake openal:al,alut shebangfix tar:bzip2
|
||||
USES= compiler:c++11-lang cpe gl gmake openal:al,alut shebangfix \
|
||||
tar:bzip2
|
||||
CPE_VENDOR= bernhard_wymann
|
||||
SHEBANG_FILES= src/tools/accc/accc.in src/tools/nfsperf/nfsperf.in \
|
||||
src/tools/texmapper/texmapper.in src/tools/nfs2ac/nfs2ac.in \
|
||||
|
11
games/torcs/files/patch-src_drivers_olethros_geometry.cpp
Normal file
11
games/torcs/files/patch-src_drivers_olethros_geometry.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
--- 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user