Skip to content

Commit 607bb3f

Browse files
Johannes Sixtgitster
authored andcommitted
Provide fallback definitions of PRIu32 and PRIx32
Since 6e1c234 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>
1 parent 952182b commit 607bb3f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

git-compat-util.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,14 @@
110110
#define PRIuMAX "llu"
111111
#endif
112112

113+
#ifndef PRIu32
114+
#define PRIu32 "u"
115+
#endif
116+
117+
#ifndef PRIx32
118+
#define PRIx32 "x"
119+
#endif
120+
113121
#ifndef PATH_SEP
114122
#define PATH_SEP ':'
115123
#endif

0 commit comments

Comments
 (0)