--- mstools/h/time.h 2018/08/09 18:20:01 1.1 +++ mstools/h/time.h 2018/08/09 18:20:28 1.1.1.2 @@ -1,7 +1,7 @@ /*** *time.h - definitions/declarations for time routines * -* Copyright (c) 1985-1991, Microsoft Corporation. All rights reserved. +* Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved. * *Purpose: * This file has declarations of time routines and defines @@ -18,9 +18,11 @@ extern "C" { #endif +#ifndef MIPS #if (_MSC_VER <= 600) #define __cdecl _cdecl #endif +#endif /* define the implementation defined time type */ @@ -76,6 +78,27 @@ struct tm { * routines. */ +#ifdef _DLL + +#define _daylight (*_daylight_dll) +#define _timezone (*_timezone_dll) + +/* non-zero if daylight savings time is used */ +extern int * _daylight_dll; + +/* difference in seconds between GMT and local time */ +extern long * _timezone_dll; + +/* standard/daylight savings time zone names */ +extern char ** _tzname; + +#else + + +#ifdef _POSIX_ +extern char * _rule; +#endif + /* non-zero if daylight savings time is used */ extern int _daylight; @@ -83,8 +106,12 @@ extern int _daylight; extern long _timezone; /* standard/daylight savings time zone names */ +#ifdef _POSIX_ +#define tzname _tzname +#endif extern char * _tzname[2]; +#endif /* function prototypes */ @@ -99,12 +126,16 @@ size_t strftime(char *, size_t, const ch char * _strdate(char *); char * _strtime(char *); time_t time(time_t *); +#ifdef _POSIX_ +void tzset(void); +#else void _tzset(void); +#endif unsigned _getsystime(struct tm *); unsigned _setsystime(struct tm *, unsigned); -#if !__STDC__ +#if !__STDC__ || defined(_POSIX_) /* Non-ANSI names for compatibility */ #define CLK_TCK CLOCKS_PER_SEC