Changeset 478 for vendor/current/lib/util
- Timestamp:
- Aug 2, 2010, 6:40:21 PM (15 years ago)
- Location:
- vendor/current/lib/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/lib/util/time.c
r414 r478 28 28 */ 29 29 30 #ifndef TIME_T_MIN31 /* we use 0 here, because (time_t)-1 means error */32 #define TIME_T_MIN 033 #endif34 35 30 #if (SIZEOF_LONG == 8) 36 31 #define TIME_FIXUP_CONSTANT_INT 11644473600L … … 40 35 41 36 42 43 /*44 * we use the INT32_MAX here as on 64 bit systems,45 * gmtime() fails with INT64_MAX46 */47 48 #ifndef TIME_T_MAX49 #define TIME_T_MAX MIN(INT32_MAX,_TYPE_MAXIMUM(time_t))50 #endif51 37 52 38 /** -
vendor/current/lib/util/time.h
r414 r478 24 24 #endif 25 25 26 #ifndef TIME_T_MIN 27 /* we use 0 here, because (time_t)-1 means error */ 28 #define TIME_T_MIN 0 29 #endif 30 31 /* 32 * we use the INT32_MAX here as on 64 bit systems, 33 * gmtime() fails with INT64_MAX 34 */ 35 #ifndef TIME_T_MAX 36 #define TIME_T_MAX MIN(INT32_MAX,_TYPE_MAXIMUM(time_t)) 37 #endif 38 39 26 40 /* 64 bit time (100 nanosec) 1601 - cifs6.txt, section 3.5, page 30, 4 byte aligned */ 27 41 typedef uint64_t NTTIME;
Note:
See TracChangeset
for help on using the changeset viewer.