Implemented MyReadLocation inline to remove the NavigatorStubs dependency

git-svn-id: svn://10.0.0.236/trunk@4610 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
atotic
1998-06-26 23:35:01 +00:00
parent 3b31c107da
commit 8b49e55a21

View File

@@ -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) && \