Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
timestamp_t: a new data type for timestamps
[gitweb.git]
/
git-compat-util.h
diff --git
a/git-compat-util.h
b/git-compat-util.h
index 8a4a3f85e7ba0a658420c477e1af82e804d7fd36..72c12173a1488981fee6c93912a3705fc363d94a 100644
(file)
--- a/
git-compat-util.h
+++ b/
git-compat-util.h
@@
-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