slackbuilds_ponce/desktop/adwaita-qt/isnan_compile_fix.patch
M.Dinslage e0b4877187 desktop/adwaita-qt: Added (KDE/QT Theme).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2017-02-05 15:47:37 +07:00

21 lines
701 B
Diff

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);