BRL-CAD
time64_config.h
Go to the documentation of this file.
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  MODIFIED: Use BRL-CAD's int64_t
23 */
24 #define INT_64_T int64_t
25 
26 
27 /* USE_TM64
28  Should we use a 64 bit safe replacement for tm? This will
29  let you go past year 2 billion but the struct will be incompatible
30  with tm. Conversion functions will be provided.
31 */
32 /* #define USE_TM64 */
33 
34 
35 /* Availability of system functions.
36 
37  HAS_GMTIME_R
38  Define if your system has gmtime_r()
39 
40  HAS_LOCALTIME_R
41  Define if your system has localtime_r()
42 
43  HAS_TIMEGM
44  Define if your system has timegm(), a GNU extension.
45 
46  MODIFIED: Reduce necessary number of CMake checks by assuming that
47  nothing nonstandard exists.
48 */
49 /* #define HAS_GMTIME_R */
50 /* #define HAS_LOCALTIME_R */
51 /* #define HAS_TIMEGM */
52 
53 
54 /* Details of non-standard tm struct elements.
55 
56  HAS_TM_TM_GMTOFF
57  True if your tm struct has a "tm_gmtoff" element.
58  A BSD extension.
59 
60  HAS_TM_TM_ZONE
61  True if your tm struct has a "tm_zone" element.
62  A BSD extension.
63 */
64 /* #define HAS_TM_TM_GMTOFF */
65 /* #define HAS_TM_TM_ZONE */
66 
67 
68 /* USE_SYSTEM_LOCALTIME
69  USE_SYSTEM_GMTIME
70  USE_SYSTEM_MKTIME
71  USE_SYSTEM_TIMEGM
72  Should we use the system functions if the time is inside their range?
73  Your system localtime() is probably more accurate, but our gmtime() is
74  fast and safe.
75 
76  MODIFIED: Never use any system functions so that we don't have to
77  worry about the size of the host time_t. DO NOT RE-ENABLE ANY OF
78  THESE: the limits of the system functions have not been hooked into
79  BRL-CAD's build system and may be incorrect on some platforms.
80 */
81 /* #define USE_SYSTEM_LOCALTIME */
82 /* #define USE_SYSTEM_GMTIME */
83 /* #define USE_SYSTEM_MKTIME */
84 /* #define USE_SYSTEM_TIMEGM */
85 
86 #endif /* TIME64_CONFIG_H */