aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/thunderbird/finite.patch
diff options
context:
space:
mode:
authorBartłomiej Piotrowski <bpiotrowski@alpinelinux.org>2014-02-09 01:35:19 +0100
committerBartłomiej Piotrowski <bpiotrowski@alpinelinux.org>2014-02-09 14:06:46 +0100
commit2c0574a6346498c2ca27459818d4b4556246a67d (patch)
tree8ef3fe8b07bc891fbda042e1b8fb8f2627e82d93 /unmaintained/thunderbird/finite.patch
parent9b4a462a634d6c4225a44de1fe32ecf99c749c1d (diff)
downloadaports-2c0574a6346498c2ca27459818d4b4556246a67d.tar.bz2
aports-2c0574a6346498c2ca27459818d4b4556246a67d.tar.xz
testing/thunderbird: move to unmaintained
Diffstat (limited to 'unmaintained/thunderbird/finite.patch')
-rw-r--r--unmaintained/thunderbird/finite.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/unmaintained/thunderbird/finite.patch b/unmaintained/thunderbird/finite.patch
new file mode 100644
index 0000000000..63927ab82a
--- /dev/null
+++ b/unmaintained/thunderbird/finite.patch
@@ -0,0 +1,26 @@
+--- ./mozilla/js/src/ctypes/CTypes.cpp.orig
++++ ./mozilla/js/src/ctypes/CTypes.cpp
+@@ -467,7 +467,7 @@
+ #ifdef WIN32
+ return _finite(f) != 0;
+ #else
+- return finite(f);
++ return isfinite(f);
+ #endif
+ }
+
+--- ./mozilla/xpcom/ds/nsMathUtils.h
++++ ./mozilla/xpcom/ds/nsMathUtils.h
+@@ -131,7 +131,11 @@ inline NS_HIDDEN_(bool) NS_finite(double d)
+ // NOTE: '!!' casts an int to bool without spamming MSVC warning C4800.
+ return !!_finite(d);
+ #else
+- return finite(d);
++#ifdef _GLIBCXX_CMATH
++ return std::isfinite(d);
++#else
++ return isfinite(d);
++#endif
+ #endif
+ }
+