~ruther/guix-local

ref: 84905d47d8ef6b208d0b59c604e611886c2ed2c4 guix-local/gnu/packages/patches/torcs-isnan.patch -rw-r--r-- 631 bytes
84905d47 — Efraim Flashner gnu: Add codeberg-cli. 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Source: https://src.fedoraproject.org/rpms/torcs/raw/rawhide/f/torcs-1.3.7-isnan.patch
Upstream-status: https://sourceforge.net/p/torcs/mailman/torcs-devel/thread/0bd466b7-e158-471b-13ad-504167587d01%40embecosm.com/#msg35836767

diff -up torcs-1.3.7/src/drivers/olethros/geometry.cpp.orig torcs-1.3.7/src/drivers/olethros/geometry.cpp
--- torcs-1.3.7/src/drivers/olethros/geometry.cpp.orig	2016-06-07 19:49:11.347896827 +0100
+++ torcs-1.3.7/src/drivers/olethros/geometry.cpp	2016-06-07 19:49:46.532894257 +0100
@@ -27,6 +27,8 @@
 #ifdef WIN32
 #include <float.h>
 #define isnan _isnan
+#else
+#define isnan std::isnan
 #endif