1 #ifndef TIME64_CONFIG_H
2 # define TIME64_CONFIG_H
6 Define as appropriate for your system.
7 Sensible defaults provided.
12 Define if you want debugging messages
14 /* #define TIME_64_DEBUG */
18 A 64 bit integer type to use to store time and others.
21 #define INT_64_T Quad_t
25 Should we use a 64 bit safe replacement for tm? This will
26 let you go past year 2 billion but the struct will be incompatible
27 with tm. Conversion functions will be provided.
32 /* Availability of system functions.
35 Define if your system has gmtime_r()
38 Define if your system has localtime_r()
41 Define if your system has timegm(), a GNU extension.
46 /* Details of non-standard tm struct elements.
49 True if your tm struct has a "tm_gmtoff" element.
53 True if your tm struct has a "tm_zone" element.
59 /* USE_SYSTEM_LOCALTIME
61 Should we use the system functions if the time is inside their range?
62 Your system localtime() is probably more accurate, but our gmtime() is
65 #define USE_SYSTEM_LOCALTIME
66 /* #define USE_SYSTEM_GMTIME */
69 /* SYSTEM_LOCALTIME_MAX
73 Maximum and minimum values your system's gmtime() and localtime()
74 can handle. We will use your system functions if the time falls
77 #define SYSTEM_LOCALTIME_MAX CAT2(LOCALTIME_MAX,UL)
78 #define SYSTEM_LOCALTIME_MIN CAT2(LOCALTIME_MIN,UL)
79 #define SYSTEM_GMTIME_MAX CAT2(GMTIME_MAX,UL)
80 #define SYSTEM_GMTIME_MIN CAT2(GMTIME_MIN,UL)
82 #endif /* TIME64_CONFIG_H */