git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH na/strtoimax] Compatibility: declare strtoimax() under NO_STRTOUMAX
@ 2011-11-05 15:37 Johannes Sixt
  2011-11-05 15:38 ` Nix
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Johannes Sixt @ 2011-11-05 15:37 UTC (permalink / raw)
  To: Nick Alcock; +Cc: Junio C Hamano, Git Mailing List

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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-11-06 18:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-05 15:37 [PATCH na/strtoimax] Compatibility: declare strtoimax() under NO_STRTOUMAX Johannes Sixt
2011-11-05 15:38 ` Nix
2011-11-05 16:34 ` Johannes Sixt
2011-11-06 18:21   ` Ramsay Jones
2011-11-06  6:10 ` Junio C Hamano
2011-11-06  8:53   ` Johannes Sixt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).