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>
Johannes Sixt committed
Nov 5, 2011 at 16:37 UTC
97000ba6e21d25581222e11c36db4bb88c05adcd
1 file changed
+2
git-compat-util.h
+2
@@ -345,6 +345,8 @@ extern size_t gitstrlcpy(char *, const char *, size_t);
345
#ifdef NO_STRTOUMAX
346
#define strtoumax gitstrtoumax
347
extern uintmax_t gitstrtoumax(const char *, char **, int);
348
+#define strtoimax gitstrtoimax
349
+extern intmax_t gitstrtoimax(const char *, char **, int);
350
#endif
351
352
#ifdef NO_STRTOK_R