projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
952182b
)
Provide fallback definitions of PRIu32 and PRIx32
author
Johannes Sixt
<johannes.sixt@telecom.at>
Wed, 9 Jul 2008 20:38:14 +0000
(22:38 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 9 Jul 2008 22:10:03 +0000
(15:10 -0700)
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>
git-compat-util.h
patch
|
blob
|
history
diff --git
a/git-compat-util.h
b/git-compat-util.h
index 545df5924247c9d4ffe700db6c158715561f6a62..8c7e11473390c14956e43843c17a2d85a336a087 100644
(file)
--- 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