date.c: abort if the system time cannot handle one of our timestamps
[gitweb.git] / git-compat-util.h
index 8a4a3f85e7ba0a658420c477e1af82e804d7fd36..72c12173a1488981fee6c93912a3705fc363d94a 100644 (file)
@@ -319,6 +319,11 @@ extern char *gitdirname(char *);
 #define PRIo32 "o"
 #endif
 
+typedef unsigned long timestamp_t;
+#define PRItime "lu"
+#define parse_timestamp strtoul
+#define TIME_MAX ULONG_MAX
+
 #ifndef PATH_SEP
 #define PATH_SEP ':'
 #endif