Skip to content

Commit 97000ba

Browse files
j6tgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e3eed7f commit 97000ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git-compat-util.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,8 @@ extern size_t gitstrlcpy(char *, const char *, size_t);
345345
#ifdef NO_STRTOUMAX
346346
#define strtoumax gitstrtoumax
347347
extern uintmax_t gitstrtoumax(const char *, char **, int);
348+
#define strtoimax gitstrtoimax
349+
extern intmax_t gitstrtoimax(const char *, char **, int);
348350
#endif
349351

350352
#ifdef NO_STRTOK_R

0 commit comments

Comments
 (0)