aboutsummaryrefslogtreecommitdiffstats
path: root/community/firefox-esr/0002-Use-C99-math-isfinite.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-03-31 09:32:21 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-03-31 12:48:15 +0000
commit4c9e27a54c4f400e46645cb768b7743d2e29f9b1 (patch)
treeefafab3e4b167b8a11a8991d468c1655d25403c4 /community/firefox-esr/0002-Use-C99-math-isfinite.patch
parenta94573fafecc06cfd799ff83b4b3da40e29d469d (diff)
downloadaports-4c9e27a54c4f400e46645cb768b7743d2e29f9b1.tar.bz2
aports-4c9e27a54c4f400e46645cb768b7743d2e29f9b1.tar.xz
community/firefox-esr: renamed from firefox
Diffstat (limited to 'community/firefox-esr/0002-Use-C99-math-isfinite.patch')
-rw-r--r--community/firefox-esr/0002-Use-C99-math-isfinite.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/community/firefox-esr/0002-Use-C99-math-isfinite.patch b/community/firefox-esr/0002-Use-C99-math-isfinite.patch
new file mode 100644
index 0000000000..ba4f5cfb3d
--- /dev/null
+++ b/community/firefox-esr/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
+ }
+