projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3eed7f
)
Compatibility: declare strtoimax() under NO_STRTOUMAX
author
Johannes Sixt
<j6t@kdbg.org>
Sat, 5 Nov 2011 15:37:34 +0000
(16:37 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 6 Nov 2011 06:10:24 +0000
(23:10 -0700)
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>
git-compat-util.h
patch
|
blob
|
history
diff --git
a/git-compat-util.h
b/git-compat-util.h
index e0bb81ed8d0bd89f18b31b1c03d3e23744aea5a1..23f760331f9242e77fda10fce52f4c3b5be60676 100644
(file)
--- 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