aboutsummaryrefslogtreecommitdiffstats
path: root/main/xulrunner/0001-Use-C99-math-isfinite.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-08-15 12:57:07 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-08-15 14:32:38 +0000
commit0c96f83bef7f3cf30ffab693dd90126bb87e8ce1 (patch)
tree237d806ec5f037cd89ba8cb4658d52124533e4b6 /main/xulrunner/0001-Use-C99-math-isfinite.patch
parenta50fdbd9146b48006f82f69422e9c475d52a14d6 (diff)
downloadaports-0c96f83bef7f3cf30ffab693dd90126bb87e8ce1.tar.bz2
aports-0c96f83bef7f3cf30ffab693dd90126bb87e8ce1.tar.xz
main/xulrunner: upgrade to 6.0
Diffstat (limited to 'main/xulrunner/0001-Use-C99-math-isfinite.patch')
-rw-r--r--main/xulrunner/0001-Use-C99-math-isfinite.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/main/xulrunner/0001-Use-C99-math-isfinite.patch b/main/xulrunner/0001-Use-C99-math-isfinite.patch
new file mode 100644
index 0000000000..b9ead9117c
--- /dev/null
+++ b/main/xulrunner/0001-Use-C99-math-isfinite.patch
@@ -0,0 +1,39 @@
+From f7c52ff6334ce158da23750e63655df41e73fc31 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Mon, 15 Aug 2011 07:57:16 +0000
+Subject: [PATCH] Use C99 math isfinite
+
+---
+ content/base/public/nsContentUtils.h | 2 +-
+ js/src/ctypes/CTypes.cpp | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/content/base/public/nsContentUtils.h b/content/base/public/nsContentUtils.h
+index a69d4ef..b4d8e67 100644
+--- a/content/base/public/nsContentUtils.h
++++ b/content/base/public/nsContentUtils.h
+@@ -1994,7 +1994,7 @@ inline NS_HIDDEN_(PRBool) NS_FloatIsFinite(jsdouble f) {
+ #ifdef WIN32
+ return _finite(f);
+ #else
+- return finite(f);
++ return isfinite(f);
+ #endif
+ }
+
+diff --git a/js/src/ctypes/CTypes.cpp b/js/src/ctypes/CTypes.cpp
+index 0644817..5dbb906 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
+ }
+
+--
+1.7.6
+