Bug 912959 - libxul.so link fails - ToNumberSlow() is built as a hidden symbol. r=luke
authorMartin Stransky <stransky@redhat.com>
Mon, 23 Sep 2013 09:30:11 -0400
changeset 148322 60c4c441b5a20d546806e71dd9b3410e85e008f9
parent 148321 969aeee55c09556badc47e9bb16e79a76bcf6dec
child 148323 9403fb5920fa6d37ddb0c138ecec2b231bb79f2f
push id25336
push userryanvm@gmail.com
push dateMon, 23 Sep 2013 21:01:41 +0000
treeherdermozilla-central@8b28b4bed72c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersluke
bugs912959
milestone27.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 912959 - libxul.so link fails - ToNumberSlow() is built as a hidden symbol. r=luke
js/src/jsnum.h
--- a/js/src/jsnum.h
+++ b/js/src/jsnum.h
@@ -155,17 +155,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
@@ -244,17 +244,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