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 numeric type to store time and others.
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
63 fast and safe. Except on VMS, where we need the homegrown gmtime()
64 override to shift between UTC and local for the vmsish 'time' pragma.
66 #define USE_SYSTEM_LOCALTIME
68 # define USE_SYSTEM_GMTIME
72 /* SYSTEM_LOCALTIME_MAX
76 Maximum and minimum values your system's gmtime() and localtime()
77 can handle. We will use your system functions if the time falls
80 #define SYSTEM_LOCALTIME_MAX CAT2(LOCALTIME_MAX,.0)
81 #define SYSTEM_LOCALTIME_MIN CAT2(LOCALTIME_MIN,.0)
82 #define SYSTEM_GMTIME_MAX CAT2(GMTIME_MAX,.0)
83 #define SYSTEM_GMTIME_MIN CAT2(GMTIME_MIN,.0)
85 #endif /* TIME64_CONFIG_H */