File guitarix-0.35.0-gcc6.patch of Package guitarix

Index: b/libgxwmm/gxwmm/gainline.h
===================================================================
--- a/libgxwmm/gxwmm/gainline.h
+++ b/libgxwmm/gxwmm/gainline.h
@@ -21,8 +21,9 @@
 
 #include <gxw/gainpoints.h>
 #include <vector>
+#include <cmath>
 
-inline bool operator==(const gain_points& p1, const gain_points& p2) { return p1.i == p2.i && abs(p1.g - p2.g) < 1e-4 * (p1.g + p2.g); }
+inline bool operator==(const gain_points& p1, const gain_points& p2) { return p1.i == p2.i && std::abs(p1.g - p2.g) < 1e-4 * (p1.g + p2.g); }
 inline bool operator!=(const gain_points& p1, const gain_points& p2) { return !(p1 == p2); }
 
 class Gainline: public std::vector<gain_points>
openSUSE Build Service is sponsored by