Implemented MyReadLocation inline to remove the NavigatorStubs dependency

This commit is contained in:
atotic 1998-06-26 23:35:01 +00:00
Родитель 8cb2f20cbf
Коммит 7b84cc7141
1 изменённых файлов: 14 добавлений и 2 удалений

Просмотреть файл

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