[PATCH na/strtoimax] Compatibility: declare strtoimax() under NO_STRTOUMAX
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Nov 5, 2011, 15:37 UTC
- Message-ID
- <4EB5583E.2030306@kdbg.org>
Commit f696543d (Add strtoimax() compatibility function) introduced an implementation of the function, but forgot to add a declaration.
Signed-off-by: Johannes Sixt <j6t@kdbg.org> --- 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 feb6f8e..4efef46 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -354,6 +354,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
-- 1.7.7.1.1608.gd424d