aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/oxygen-gtk/isnan.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-06-03 06:25:55 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-06-03 06:25:55 +0000
commit913ed91cdb9690cccf940b7263dea363c4bffc61 (patch)
treee0e6b26bb0e760ec61d9787f69fb67776b8878b1 /unmaintained/oxygen-gtk/isnan.patch
parent5380e45bb4bccdc93280f5dbd7d4cd20e651aa3a (diff)
downloadaports-913ed91cdb9690cccf940b7263dea363c4bffc61.tar.bz2
aports-913ed91cdb9690cccf940b7263dea363c4bffc61.tar.xz
testing/oxygen-gtk: moved to unmaintained
Diffstat (limited to 'unmaintained/oxygen-gtk/isnan.patch')
-rw-r--r--unmaintained/oxygen-gtk/isnan.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/unmaintained/oxygen-gtk/isnan.patch b/unmaintained/oxygen-gtk/isnan.patch
new file mode 100644
index 0000000000..5e2d27477d
--- /dev/null
+++ b/unmaintained/oxygen-gtk/isnan.patch
@@ -0,0 +1,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 );