Update from y2038
[p5sagit/p5-mst-13.2.git] / time64_config.h
CommitLineData
b86b480f 1#ifndef TIME64_CONFIG_H
2# define TIME64_CONFIG_H
3
4/* Configuration
5 -------------
6 Define as appropriate for your system.
7 Sensible defaults provided.
8*/
9
10/* INT_64_T
11 A 64 bit integer type to use to store time and others.
12 Must be defined.
13*/
14#define INT_64_T Quad_t
15
16
17/* USE_TM64
18 Should we use a 64 bit safe replacement for tm? This will
19 let you go past year 2 billion but the struct will be incompatible
20 with tm. Conversion functions will be provided.
21*/
22#define USE_TM64
23
24
25/* Availability of system functions.
26
27 HAS_GMTIME_R
28 Define if your system has gmtime_r()
29
30 HAS_LOCALTIME_R
31 Define if your system has localtime_r()
32
33 HAS_TIMEGM
34 Define if your system has timegm(), a GNU extension.
35*/
36/* Set in config.h */
37
38
39/* Details of non-standard tm struct elements.
40
41 HAS_TM_TM_GMTOFF
42 True if your tm struct has a "tm_gmtoff" element.
43 A BSD extension.
44
45 HAS_TM_TM_ZONE
46 True if your tm struct has a "tm_zone" element.
47 A BSD extension.
48*/
49/* Set in config.h */
50
51
52/* USE_SYSTEM_LOCALTIME
53 USE_SYSTEM_GMTIME
54 Should we use the system functions if the time is inside their range?
55 Your system localtime() is probably more accurate, but our gmtime() is
56 fast and safe.
57*/
58#define USE_SYSTEM_LOCALTIME
59/* #define USE_SYSTEM_GMTIME */
60
61
62/* SYSTEM_LOCALTIME_MAX
63 SYSTEM_LOCALTIME_MIN
64 SYSTEM_GMTIME_MAX
65 SYSTEM_GMTIME_MIN
66 Maximum and minimum values your system's gmtime() and localtime()
67 can handle. We will use your system functions if the time falls
68 inside these ranges.
69*/
70#define SYSTEM_LOCALTIME_MAX LOCALTIME_MAX
71#define SYSTEM_LOCALTIME_MIN LOCALTIME_MIN
72#define SYSTEM_GMTIME_MAX GMTIME_MAX
73#define SYSTEM_GMTIME_MIN GMTIME_MIN
74
75#endif TIME64_CONFIG_H