xref: /original-bsd/share/zoneinfo/DIST/time.h (revision 1358b9c7)
1*1358b9c7Sbostic #ifndef lint
2*1358b9c7Sbostic #ifndef NOID
3*1358b9c7Sbostic #ifndef TIME_H
4*1358b9c7Sbostic #define TIME_H
5*1358b9c7Sbostic static char	timehid[] = "@(#)time.h	4.2";
6*1358b9c7Sbostic #endif /* !defined TIME_H */
7*1358b9c7Sbostic #endif /* !defined NOID */
8*1358b9c7Sbostic #endif /* !defined lint */
9*1358b9c7Sbostic 
10*1358b9c7Sbostic #ifdef TIME_RECURSING
11*1358b9c7Sbostic #include "/usr/include/time.h"
12*1358b9c7Sbostic #else /* !defined TIME_RECURSING */
13*1358b9c7Sbostic #define TIME_RECURSING
14*1358b9c7Sbostic #include <time.h>
15*1358b9c7Sbostic #undef TIME_RECURSING
16*1358b9c7Sbostic #endif /* !defined TIME_RECURSING */
17*1358b9c7Sbostic 
18*1358b9c7Sbostic #ifndef __STDC__
19*1358b9c7Sbostic 
20*1358b9c7Sbostic #ifndef time_t
21*1358b9c7Sbostic #ifdef unix
22*1358b9c7Sbostic #include <sys/types.h>
23*1358b9c7Sbostic #else /* !defined unix */
24*1358b9c7Sbostic typedef long	time_t;
25*1358b9c7Sbostic #endif /* !defined unix */
26*1358b9c7Sbostic #endif /* !defined time_t */
27*1358b9c7Sbostic 
28*1358b9c7Sbostic extern time_t	time();
29*1358b9c7Sbostic 
30*1358b9c7Sbostic #endif /* !defined __STDC__ */
31*1358b9c7Sbostic 
32*1358b9c7Sbostic #ifdef __GNUC__
33*1358b9c7Sbostic 
34*1358b9c7Sbostic #ifndef time_t
35*1358b9c7Sbostic #ifdef unix
36*1358b9c7Sbostic #include <sys/types.h>
37*1358b9c7Sbostic #else /* !defined unix */
38*1358b9c7Sbostic typedef long	time_t;
39*1358b9c7Sbostic #endif /* !defined unix */
40*1358b9c7Sbostic #endif /* !defined time_t */
41*1358b9c7Sbostic 
42*1358b9c7Sbostic extern time_t	time();
43*1358b9c7Sbostic 
44*1358b9c7Sbostic #endif /* defined __GNUC__ */
45*1358b9c7Sbostic 
46*1358b9c7Sbostic /*
47*1358b9c7Sbostic ** UNIX is a registered trademark of AT&T.
48*1358b9c7Sbostic */
49