1 #ifndef TIME64_CONFIG_H
2 # define TIME64_CONFIG_H
6 Define as appropriate for your system.
7 Sensible defaults provided.
11 A 64 bit integer type to use to store time and others.
14 #define INT_64_T Quad_t
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.
25 /* Availability of system functions.
28 Define if your system has gmtime_r()
31 Define if your system has localtime_r()
34 Define if your system has timegm(), a GNU extension.
39 /* Details of non-standard tm struct elements.
42 True if your tm struct has a "tm_gmtoff" element.
46 True if your tm struct has a "tm_zone" element.
52 /* USE_SYSTEM_LOCALTIME
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
58 #define USE_SYSTEM_LOCALTIME
59 /* #define USE_SYSTEM_GMTIME */
62 /* SYSTEM_LOCALTIME_MAX
66 Maximum and minimum values your system's gmtime() and localtime()
67 can handle. We will use your system functions if the time falls
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
75 #endif TIME64_CONFIG_H