summaryrefslogtreecommitdiffstats
path: root/main/xulrunner/mozjs-c99math.patch
blob: fdf346e49546fbf440429d2b2cd6680bcac225ec (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
--- mozilla-1.9.2.orig/js/src/jsnum.h
+++ mozilla-1.9.2/js/src/jsnum.h
@@ -98,7 +98,7 @@
 #ifdef WIN32
     return _finite(d);
 #else
-    return finite(d);
+    return isfinite(d);
 #endif
 }
 
--- mozilla-2.0.orig/js/src/ctypes/CTypes.cpp
+++ mozilla-2.0/js/src/ctypes/CTypes.cpp
@@ -464,7 +464,7 @@
 #ifdef WIN32
   return _finite(f) != 0;
 #else
-  return finite(f);
+  return isfinite(f);
 #endif
 }
 
--- mozilla-2.0.orig/content/base/public/nsContentUtils.h
+++ mozilla-2.0/content/base/public/nsContentUtils.h
@@ -1942,7 +1942,7 @@
 #ifdef WIN32
   return _finite(f);
 #else
-  return finite(f);
+  return isfinite(f);
 #endif
 }