diff options
author | Johannes Sixt <j6t@kdbg.org> | 2011-11-05 16:37:34 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-11-05 23:10:24 -0700 |
commit | 97000ba6e21d25581222e11c36db4bb88c05adcd (patch) | |
tree | c0045eab769ce190b2a79ef00eb67e6a5959a06c /git-compat-util.h | |
parent | e3eed7f8d238e895922851315447f5df9c475f11 (diff) | |
download | git-97000ba6e21d25581222e11c36db4bb88c05adcd.tar.gz |
Compatibility: declare strtoimax() under NO_STRTOUMAX
The previous one introduced an implementation of the function, but forgot
to add a declaration.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 e0bb81ed8d..23f760331f 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -345,6 +345,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 |