diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-09-03 14:47:28 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-09-03 14:47:28 +0000 |
commit | 67f0d66bcc7f22d53d3b00a97fc0c98eaf411430 (patch) | |
tree | 6d2d398432c47101e23f1edeaa7b00c394fbc8ea /testing/xulrunner/0002-Use-C99-math-isfinite.patch | |
parent | 6bf481e6ab8edac1c66698dcc1a6eee048b75f0d (diff) | |
download | aports-67f0d66bcc7f22d53d3b00a97fc0c98eaf411430.tar.bz2 aports-67f0d66bcc7f22d53d3b00a97fc0c98eaf411430.tar.xz |
testing/xulrunner: add xulrunner-32.0
Diffstat (limited to 'testing/xulrunner/0002-Use-C99-math-isfinite.patch')
-rw-r--r-- | testing/xulrunner/0002-Use-C99-math-isfinite.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/xulrunner/0002-Use-C99-math-isfinite.patch b/testing/xulrunner/0002-Use-C99-math-isfinite.patch new file mode 100644 index 0000000000..03f830bcae --- /dev/null +++ b/testing/xulrunner/0002-Use-C99-math-isfinite.patch @@ -0,0 +1,29 @@ +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 + +--- + xpcom/ds/nsMathUtils.h | 6 +++++- + 2 files changed, 6 insertions(+), 2 deletions(-) + +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 + |