Bug 912959 - libxul.so link fails - ToNumberSlow() is built as a hidden symbol. r=luke, a=lsblakk
authorMartin Stransky <stransky@redhat.com>
Mon, 23 Sep 2013 09:30:11 -0400
changeset 160881 7c710add681eae1bf74b9e89a39b165ac8979f2c
parent 160880 43bce1bb6978ef2b8c176280cc06e175f8653838
child 160882 e145a1d09fac8436e41d363ce04fefef4e2b38db
push id2961
push userlsblakk@mozilla.com
push dateMon, 28 Oct 2013 21:59:28 +0000
treeherdermozilla-beta@73ef4f13486f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersluke, lsblakk
bugs912959
milestone26.0a2
Bug 912959 - libxul.so link fails - ToNumberSlow() is built as a hidden symbol. r=luke, a=lsblakk
js/src/jsnum.h
--- a/js/src/jsnum.h
+++ b/js/src/jsnum.h
@@ -158,17 +158,17 @@ ToNumber(JSContext *cx, JS::MutableHandl
 {
 #ifdef DEBUG
     MaybeCheckStackRoots(cx);
 #endif
 
     if (vp.isNumber())
         return true;
     double d;
-    extern bool ToNumberSlow(JSContext *cx, Value v, double *dp);
+    extern JS_PUBLIC_API(bool) ToNumberSlow(JSContext *cx, Value v, double *dp);
     if (!ToNumberSlow(cx, vp, &d))
         return false;
 
     vp.setNumber(d);
     return true;
 }
 
 bool
@@ -247,17 +247,17 @@ ToInteger(JSContext *cx, HandleValue v, 
 
     if (v.isInt32()) {
         *dp = v.toInt32();
         return true;
     }
     if (v.isDouble()) {
         *dp = v.toDouble();
     } else {
-        extern bool ToNumberSlow(JSContext *cx, Value v, double *dp);
+        extern JS_PUBLIC_API(bool) ToNumberSlow(JSContext *cx, Value v, double *dp);
         if (!ToNumberSlow(cx, v, dp))
             return false;
     }
     *dp = ToInteger(*dp);
     return true;
 }
 
 inline bool