aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/oxygen-gtk/isnan.patch
blob: 5e2d27477d1681172817401a6b48daa2e4ec6288 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- oxygen-gtk-1.0.5.orig/src/oxygencolorutils.cpp
+++ oxygen-gtk-1.0.5/src/oxygencolorutils.cpp
@@ -460,7 +460,7 @@
     {
         if( amount <= 0.0 ) return base;
         if( amount >= 1.0 ) return color;
-        if( isnan( amount ) ) return base;
+        if( __isnan( amount ) ) return base;
 
         double ri = contrastRatio( base, color );
         double rg = 1.0 + ( ( ri + 1.0 ) * amount * amount * amount );
@@ -487,7 +487,7 @@
     {
         if( bias <= 0.0 ) return c1;
         if( bias >= 1.0 ) return c2;
-        if( isnan( bias ) ) return c1;
+        if( __isnan( bias ) ) return c1;
 
         double r = mixdouble( c1.red(),   c2.red(),   bias );
         double g = mixdouble( c1.green(), c2.green(), bias );