1 /* Configuration
2    -------------
3    Define as appropriate for your system.
4    Sensible defaults provided.
5 */
6 
7 
8 #ifndef TIME64_CONFIG_H
9 #    define TIME64_CONFIG_H
10 
11 /* Debugging
12    TIME_64_DEBUG
13    Define if you want debugging messages
14 */
15 /* #define TIME_64_DEBUG */
16 
17 
18 /* INT_64_T
19    A 64 bit integer type to use to store time and others.
20    Must be defined.
21 */
22 #define INT_64_T                long long
23 
24 
25 /* USE_TM64
26    Should we use a 64 bit safe replacement for tm?  This will
27    let you go past year 2 billion but the struct will be incompatible
28    with tm.  Conversion functions will be provided.
29 */
30 /* #define USE_TM64 */
31 
32 
33 /* Availability of system functions.
34 
35    HAS_GMTIME_R
36    Define if your system has gmtime_r()
37 
38    HAS_LOCALTIME_R
39    Define if your system has localtime_r()
40 
41    HAS_TIMEGM
42    Define if your system has timegm(), a GNU extension.
43 */
44 #if !defined(WIN32) && !defined(_MSC_VER)
45 #define HAS_GMTIME_R
46 #define HAS_LOCALTIME_R
47 #endif
48 /* #define HAS_TIMEGM */
49 
50 
51 /* Details of non-standard tm struct elements.
52 
53    HAS_TM_TM_GMTOFF
54    True if your tm struct has a "tm_gmtoff" element.
55    A BSD extension.
56 
57    HAS_TM_TM_ZONE
58    True if your tm struct has a "tm_zone" element.
59    A BSD extension.
60 */
61 /* #define HAS_TM_TM_GMTOFF */
62 /* #define HAS_TM_TM_ZONE */
63 
64 
65 /* USE_SYSTEM_LOCALTIME
66    USE_SYSTEM_GMTIME
67    USE_SYSTEM_MKTIME
68    USE_SYSTEM_TIMEGM
69    Should we use the system functions if the time is inside their range?
70    Your system localtime() is probably more accurate, but our gmtime() is
71    fast and safe.
72 */
73 #define USE_SYSTEM_LOCALTIME
74 /* #define USE_SYSTEM_GMTIME */
75 #define USE_SYSTEM_MKTIME
76 /* #define USE_SYSTEM_TIMEGM */
77 
78 #endif /* TIME64_CONFIG_H */
79