summaryrefslogtreecommitdiff
path: root/user/firefox-esr/0002-Use-C99-math-isfinite.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-26 21:27:57 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-26 21:27:57 -0500
commit104e540fe2f63e78b86a61cb41e3ecb2f5451d65 (patch)
treee82d6599be3c39a68026ae3e3adc018348a6c17d /user/firefox-esr/0002-Use-C99-math-isfinite.patch
parentc2fa058ba2ced4f6780e42495aebc02869b2ddf8 (diff)
downloadpackages-104e540fe2f63e78b86a61cb41e3ecb2f5451d65.tar.gz
packages-104e540fe2f63e78b86a61cb41e3ecb2f5451d65.tar.bz2
packages-104e540fe2f63e78b86a61cb41e3ecb2f5451d65.tar.xz
packages-104e540fe2f63e78b86a61cb41e3ecb2f5451d65.zip
user/firefox-esr: I present Adélie's worst APKBUILD
Diffstat (limited to 'user/firefox-esr/0002-Use-C99-math-isfinite.patch')
-rw-r--r--user/firefox-esr/0002-Use-C99-math-isfinite.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/user/firefox-esr/0002-Use-C99-math-isfinite.patch b/user/firefox-esr/0002-Use-C99-math-isfinite.patch
new file mode 100644
index 000000000..ba4f5cfb3
--- /dev/null
+++ b/user/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
+ }
+