Bug 491617 - Expose this as a friendly API. r=gal

This commit is contained in:
Blake Kaplan 2009-05-05 18:09:24 -07:00
parent 736876c48b
commit 1b02d35dc1
2 changed files with 5 additions and 5 deletions

View File

@ -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);
}

View File

@ -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