summaryrefslogtreecommitdiff
path: root/desktop/adwaita-qt/isnan_compile_fix.patch
blob: 1e862372c6aa85b3456da2c473464558ae04a9a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -up adwaita-qt-0.97/style/adwaitahelper.h.orig adwaita-qt-0.97/style/adwaitahelper.h
--- adwaita-qt-0.97/style/adwaitahelper.h.orig	2017-02-04 20:20:45.831715084 -0600
+++ adwaita-qt-0.97/style/adwaitahelper.h	2017-02-04 20:21:30.195712810 -0600
@@ -33,7 +33,7 @@
 #include <xcb/xcb.h>
 #endif
 
-#include <math.h>
+#include <cmath>
 
 namespace Adwaita
 {
@@ -69,7 +69,7 @@ namespace Adwaita
 
             if (bias <= 0.0) return c1;
             if (bias >= 1.0) return c2;
-            if (isnan(bias)) return c1;
+            if (std::isnan(bias)) return c1;
 
             qreal r = mixQreal(c1.redF(),   c2.redF(),   bias);
             qreal g = mixQreal(c1.greenF(), c2.greenF(), bias);