mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 491617 - Expose this as a friendly API. r=gal
This commit is contained in:
parent
736876c48b
commit
1b02d35dc1
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user