aboutsummaryrefslogtreecommitdiffstats
path: root/testing/thunderbird/finite.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-12-01 13:35:06 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-12-01 13:35:06 +0000
commitf965f2b7a629ee40146703dfee005c5b22d5abca (patch)
treedb34ca7c42e4870477a6a5529a575752c9c2b7df /testing/thunderbird/finite.patch
parentf6568ddf3abe0dd3e7bb1ef5000bc478d4accbd7 (diff)
downloadaports-f965f2b7a629ee40146703dfee005c5b22d5abca.tar.bz2
aports-f965f2b7a629ee40146703dfee005c5b22d5abca.tar.xz
testing/thunderbird: new aport
Mozilla Thunderbird mail/newsgroup client http://www.mozilla.org/projects/thunderbird/
Diffstat (limited to 'testing/thunderbird/finite.patch')
-rw-r--r--testing/thunderbird/finite.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/thunderbird/finite.patch b/testing/thunderbird/finite.patch
new file mode 100644
index 000000000..63927ab82
--- /dev/null
+++ b/testing/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
+ }
+