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 fc1b5fe1a6c89be9415fa5688fa23dde53eedbf7..f8349a03bde5dd984c23bfbc7a053ab4848f8b6e 100644
(file)
--- a/
git-compat-util.h
+++ b/
git-compat-util.h
@@
-319,7
+319,10
@@
extern char *gitdirname(char *);
#define PRIo32 "o"
#endif
-#define parse_timestamp strtoul
+typedef uintmax_t timestamp_t;
+#define PRItime PRIuMAX
+#define parse_timestamp strtoumax
+#define TIME_MAX UINTMAX_MAX
#ifndef PATH_SEP
#define PATH_SEP ':'