summaryrefslogtreecommitdiffstats
path: root/testing/thunderbird/0002-Use-C99-math-isfinite.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 /testing/thunderbird/0002-Use-C99-math-isfinite.patch
parent9b4a462a634d6c4225a44de1fe32ecf99c749c1d (diff)
downloadaports-2c0574a6346498c2ca27459818d4b4556246a67d.tar.bz2
aports-2c0574a6346498c2ca27459818d4b4556246a67d.tar.xz
testing/thunderbird: move to unmaintained
Diffstat (limited to 'testing/thunderbird/0002-Use-C99-math-isfinite.patch')
-rw-r--r--testing/thunderbird/0002-Use-C99-math-isfinite.patch43
1 files changed, 0 insertions, 43 deletions
diff --git a/testing/thunderbird/0002-Use-C99-math-isfinite.patch b/testing/thunderbird/0002-Use-C99-math-isfinite.patch
deleted file mode 100644
index 3d85a6928..000000000
--- a/testing/thunderbird/0002-Use-C99-math-isfinite.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From cdb9db4c1c593dbe22db4f389a62fce034f31f2d Mon Sep 17 00:00:00 2001
-From: Natanael Copa <ncopa@alpinelinux.org>
-Date: Fri, 25 Nov 2011 08:30:51 +0000
-Subject: [PATCH 2/4] Use C99 math isfinite
-
----
- js/src/ctypes/CTypes.cpp | 2 +-
- xpcom/ds/nsMathUtils.h | 6 +++++-
- 2 files changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/js/src/ctypes/CTypes.cpp b/js/src/ctypes/CTypes.cpp
-index 5c0f886..a3b1ae6 100644
---- a/js/src/ctypes/CTypes.cpp
-+++ b/js/src/ctypes/CTypes.cpp
-@@ -467,7 +467,7 @@ static inline bool FloatIsFinite(jsdouble f) {
- #ifdef WIN32
- return _finite(f) != 0;
- #else
-- return finite(f);
-+ return isfinite(f);
- #endif
- }
-
-diff --git a/xpcom/ds/nsMathUtils.h b/xpcom/ds/nsMathUtils.h
-index 21ffbec..2e80476 100644
---- a/xpcom/ds/nsMathUtils.h
-+++ b/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
- }
-
---
-1.7.7.4
-