slackbuilds_ponce/games/torcs/gcc7.diff
B. Watson 66c00df044 games/torcs: Fix build on -current.
Signed-off-by: B. Watson <yalhcru@gmail.com>
2017-07-08 07:11:16 +07:00

12 lines
410 B
Diff

diff -Naur torcs-1.3.7/src/drivers/olethros/geometry.cpp torcs-1.3.7.patched/src/drivers/olethros/geometry.cpp
--- torcs-1.3.7/src/drivers/olethros/geometry.cpp 2006-01-06 10:22:29.000000000 -0500
+++ torcs-1.3.7.patched/src/drivers/olethros/geometry.cpp 2017-07-04 17:00:06.727000000 -0400
@@ -27,6 +27,8 @@
#ifdef WIN32
#include <float.h>
#define isnan _isnan
+#else
+#define isnan std::isnan
#endif