summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2011-11-05 15:37:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-11-06 06:10:24 (GMT)
commit97000ba6e21d25581222e11c36db4bb88c05adcd (patch)
treec0045eab769ce190b2a79ef00eb67e6a5959a06c /git-compat-util.h
parente3eed7f8d238e895922851315447f5df9c475f11 (diff)
downloadgit-97000ba6e21d25581222e11c36db4bb88c05adcd.zip
git-97000ba6e21d25581222e11c36db4bb88c05adcd.tar.gz
git-97000ba6e21d25581222e11c36db4bb88c05adcd.tar.bz2
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index e0bb81e..23f7603 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