00001 /* Configuration 00002 ------------- 00003 Define as appropriate for your system. 00004 Sensible defaults provided. 00005 */ 00006 00007 00008 #ifndef TIME64_CONFIG_H 00009 # define TIME64_CONFIG_H 00010 00011 /* Debugging 00012 TIME_64_DEBUG 00013 Define if you want debugging messages 00014 */ 00015 /* #define TIME_64_DEBUG */ 00016 00017 00018 /* INT_64_T 00019 A 64 bit integer type to use to store time and others. 00020 Must be defined. 00021 */ 00022 #define INT_64_T long long 00023 00024 00025 /* USE_TM64 00026 Should we use a 64 bit safe replacement for tm? This will 00027 let you go past year 2 billion but the struct will be incompatible 00028 with tm. Conversion functions will be provided. 00029 */ 00030 /* #define USE_TM64 */ 00031 00032 00033 /* Availability of system functions. 00034 00035 HAS_GMTIME_R 00036 Define if your system has gmtime_r() 00037 00038 HAS_LOCALTIME_R 00039 Define if your system has localtime_r() 00040 00041 HAS_TIMEGM 00042 Define if your system has timegm(), a GNU extension. 00043 */ 00044 #if !defined(WIN32) && !defined(_MSC_VER) 00045 #define HAS_GMTIME_R 00046 #define HAS_LOCALTIME_R 00047 #endif 00048 /* #define HAS_TIMEGM */ 00049 00050 00051 /* Details of non-standard tm struct elements. 00052 00053 HAS_TM_TM_GMTOFF 00054 True if your tm struct has a "tm_gmtoff" element. 00055 A BSD extension. 00056 00057 HAS_TM_TM_ZONE 00058 True if your tm struct has a "tm_zone" element. 00059 A BSD extension. 00060 */ 00061 /* #define HAS_TM_TM_GMTOFF */ 00062 /* #define HAS_TM_TM_ZONE */ 00063 00064 00065 /* USE_SYSTEM_LOCALTIME 00066 USE_SYSTEM_GMTIME 00067 USE_SYSTEM_MKTIME 00068 USE_SYSTEM_TIMEGM 00069 Should we use the system functions if the time is inside their range? 00070 Your system localtime() is probably more accurate, but our gmtime() is 00071 fast and safe. 00072 */ 00073 #define USE_SYSTEM_LOCALTIME 00074 /* #define USE_SYSTEM_GMTIME */ 00075 #define USE_SYSTEM_MKTIME 00076 /* #define USE_SYSTEM_TIMEGM */ 00077 00078 #endif /* TIME64_CONFIG_H */