Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
use uintmax_t for timestamps
[gitweb.git]
/
git-compat-util.h
diff --git
a/git-compat-util.h
b/git-compat-util.h
index 8a4a3f85e7ba0a658420c477e1af82e804d7fd36..f8349a03bde5dd984c23bfbc7a053ab4848f8b6e 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 uintmax_t timestamp_t;
+#define PRItime PRIuMAX
+#define parse_timestamp strtoumax
+#define TIME_MAX UINTMAX_MAX
+
#ifndef PATH_SEP
#define PATH_SEP ':'
#endif