From 8b49e55a217f0c3595eca90a0091adfbdfeb8d64 Mon Sep 17 00:00:00 2001 From: atotic Date: Fri, 26 Jun 1998 23:35:01 +0000 Subject: [PATCH] Implemented MyReadLocation inline to remove the NavigatorStubs dependency git-svn-id: svn://10.0.0.236/trunk@4610 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/js/src/prmjtime.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/mozilla/js/src/prmjtime.c b/mozilla/js/src/prmjtime.c index b47e10e51e7..e57bc529021 100644 --- a/mozilla/js/src/prmjtime.c +++ b/mozilla/js/src/prmjtime.c @@ -68,8 +68,20 @@ extern int gettimeofday(struct timeval *tv); #ifdef XP_MAC extern UnsignedWide dstLocalBaseMicroseconds; extern PRUintn gJanuaryFirst1970Seconds; -extern void MyReadLocation(MachineLocation* l); -#endif + +static void MyReadLocation(MachineLocation * loc) +{ + static MachineLocation storedLoc; // InsideMac, OSUtilities, page 4-20 + static Boolean didReadLocation = FALSE; + if (!didReadLocation) + { + ReadLocation(&storedLoc); + didReadLocation = TRUE; + } + *loc = storedLoc; +} + +#endif /* XP_MAC */ #define IS_LEAP(year) \ (year != 0 && ((((year & 0x3) == 0) && \