slackbuilds/games/torcs/gcc7.diff

13 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