chiark / gitweb /
macro: add DIV_ROUND_UP()
[elogind.git] / src / shared / time-util.h
index 05369d295b3139db812f2b239be95047e6c1ae6d..b55a660bb006c140d5387d95c27bee8b603a22d2 100644 (file)
@@ -65,6 +65,8 @@ typedef struct dual_timestamp {
 #define FORMAT_TIMESTAMP_RELATIVE_MAX 256
 #define FORMAT_TIMESPAN_MAX 64
 
+#define TIME_T_MAX (time_t)((1UL << ((sizeof(time_t) << 3) - 1)) - 1)
+
 #define DUAL_TIMESTAMP_NULL ((struct dual_timestamp) { 0, 0 })
 
 usec_t now(clockid_t clock);