diff --git a/js/src/jsdate.cpp b/js/src/jsdate.cpp index ecfc9c838c8..64dd584ac4e 100644 --- a/js/src/jsdate.cpp +++ b/js/src/jsdate.cpp @@ -2449,16 +2449,16 @@ js_DateGetMsecSinceEpoch(JSContext *cx, JSObject *obj) #ifdef JS_THREADSAFE #include "prinrval.h" -uint32 -js_IntervalNow() +JS_FRIEND_API(uint32) +js_IntervalNow() { return uint32(PR_IntervalToMilliseconds(PR_IntervalNow())); } #else /* !JS_THREADSAFE */ -uint32 -js_IntervalNow() +JS_FRIEND_API(uint32) +js_IntervalNow() { return uint32(PRMJ_Now() / PRMJ_USEC_PER_MSEC); } diff --git a/js/src/jsdate.h b/js/src/jsdate.h index c6e81d970c7..85e49320422 100644 --- a/js/src/jsdate.h +++ b/js/src/jsdate.h @@ -121,7 +121,7 @@ js_DateGetMsecSinceEpoch(JSContext *cx, JSObject *obj); typedef uint32 JSIntervalTime; -JSIntervalTime +extern JS_FRIEND_API(JSIntervalTime) js_IntervalNow(); JS_END_EXTERN_C