diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-12-28 11:32:33 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-12-28 11:32:33 -0800 |
commit | e39888ba21b68888e1db2d989155f23ea78fc842 (patch) | |
tree | 58c214720ef480aa1bbad0d53fd2fa40683346a9 /git-compat-util.h | |
parent | 786a9611f4d0aaa4316d38d48404ce63e090bb38 (diff) | |
parent | ebaa1bd407745c4b4c1c0f20c322929fc4371467 (diff) | |
download | git-e39888ba21b68888e1db2d989155f23ea78fc842.tar.gz |
Merge branch 'na/strtoimax' into maint
* na/strtoimax:
Support sizes >=2G in various config options accepting 'g' sizes.
Compatibility: declare strtoimax() under NO_STRTOUMAX
Add strtoimax() compatibility function.
Diffstat (limited to 'git-compat-util.h')
-rw-r--r-- | git-compat-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index 8b4dd5c022..230e198fc3 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -351,6 +351,8 @@ extern size_t gitstrlcpy(char *, const char *, size_t); #ifdef NO_STRTOUMAX #define strtoumax gitstrtoumax extern uintmax_t gitstrtoumax(const char *, char **, int); +#define strtoimax gitstrtoimax +extern intmax_t gitstrtoimax(const char *, char **, int); #endif #ifdef NO_STRTOK_R |