summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJohannes Sixt <johannes.sixt@telecom.at>2008-07-09 22:38:14 +0200
committerJunio C Hamano <gitster@pobox.com>2008-07-09 15:10:03 -0700
commit607bb3ff885727a099b39e16abd86f17ae502306 (patch)
tree381f35ca99106c6d0df68fcee7c4a10fc6cf8feb /git-compat-util.h
parent952182b5691452f2b4fb49513c74e856d561f9d2 (diff)
downloadgit-607bb3ff885727a099b39e16abd86f17ae502306.tar.gz
Provide fallback definitions of PRIu32 and PRIx32
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> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 545df59242..8c7e114733 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