You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-biology/eugene/files/eugene-4.1d-fix-c++14.patch

18 lines
635 B

Fix building with C++14, which errors out due to collisions with isinf
from cmath. We don't need to fix ancient broken OSX toolchains.
See also: https://bugs.gentoo.org/show_bug.cgi?id=594700
--- a/src/SensorPlugins/Tester/Sensor.Tester.cc
+++ b/src/SensorPlugins/Tester/Sensor.Tester.cc
@@ -18,9 +18,7 @@
// ------------------------------------------------------------------
// MacOS-X kludge. cmath undefines these macros. Turn them into inlines
-#include <math.h>
-inline int (isinf)(double r) { return isinf(r); }
-inline int (isnan)(double r) { return isnan(r); }
+#include <cmath>
#include <iomanip>
#include <fstream>