aboutsummaryrefslogtreecommitdiffstats
path: root/main/xulrunner/0001-Use-C99-math-isfinite.patch
blob: b9ead9117c2a7e53c746fad2846c0cb46af0f214 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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