* [PATCH] Provide fallback definitions of PRIu32 and PRIx32
@ 2008-07-09 20:38 Johannes Sixt
0 siblings, 0 replies; only message in thread
From: Johannes Sixt @ 2008-07-09 20:38 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
Since 6e1c23442 we make use of these C99 constructs, but this commit did
not provide fallbacks for non-C99 systems.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
---
git-compat-util.h | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/git-compat-util.h b/git-compat-util.h
index 545df59..8c7e114 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -110,6 +110,14 @@
#define PRIuMAX "llu"
#endif
+#ifndef PRIu32
+#define PRIu32 "u"
+#endif
+
+#ifndef PRIx32
+#define PRIx32 "x"
+#endif
+
#ifndef PATH_SEP
#define PATH_SEP ':'
#endif
--
1.5.6.1.216.g8c89b
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-09 20:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-09 20:38 [PATCH] Provide fallback definitions of PRIu32 and PRIx32 Johannes Sixt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox