aboutsummaryrefslogtreecommitdiffstats
path: root/testing/firefox/0002-Use-C99-math-isfinite.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-10-15 14:23:23 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-10-15 14:24:50 +0000
commit446949693b3878bc159acd9da666fd43c3855d52 (patch)
tree78404934f12c58668b16fdcf87abe59d65d7a3bb /testing/firefox/0002-Use-C99-math-isfinite.patch
parent5eac8562d04c578359a31869ab1b6860d85a6fde (diff)
downloadaports-446949693b3878bc159acd9da666fd43c3855d52.tar.bz2
aports-446949693b3878bc159acd9da666fd43c3855d52.tar.xz
testing/firefox: upgrade to 33.0 and remove xulrunner
Diffstat (limited to 'testing/firefox/0002-Use-C99-math-isfinite.patch')
-rw-r--r--testing/firefox/0002-Use-C99-math-isfinite.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/firefox/0002-Use-C99-math-isfinite.patch b/testing/firefox/0002-Use-C99-math-isfinite.patch
new file mode 100644
index 0000000000..ba4f5cfb3d
--- /dev/null
+++ b/testing/firefox/0002-Use-C99-math-isfinite.patch
@@ -0,0 +1,17 @@
+--- ./xpcom/ds/nsMathUtils.h.orig
++++ ./xpcom/ds/nsMathUtils.h
+@@ -104,12 +104,12 @@
+ #ifdef WIN32
+ // NOTE: '!!' casts an int to bool without spamming MSVC warning C4800.
+ return !!_finite(aNum);
+-#elif defined(XP_DARWIN)
++#elif defined(XP_DARWIN) || defined(_GLIBCXX_CMATH)
+ // Darwin has deprecated |finite| and recommends |isfinite|. The former is
+ // not present in the iOS SDK.
+ return std::isfinite(aNum);
+ #else
+- return finite(aNum);
++ return isfinite(aNum);
+ #endif
+ }
+