@matheusbsbs / matheus-bagliano / commits / 607bb3ff88
Fork 0

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>

Johannes Sixt committed Jul 9, 2008 at 22:38 UTC 607bb3ff885727a099b39e16abd86f17ae502306
1 file changed +8
git-compat-util.h
+8
@@ -110,6 +110,14 @@
110 #define PRIuMAX "llu"
111 #endif
112
113 +#ifndef PRIu32
114 +#define PRIu32 "u"
115 +#endif
116 +
117 +#ifndef PRIx32
118 +#define PRIx32 "x"
119 +#endif
120 +
121 #ifndef PATH_SEP
122 #define PATH_SEP ':'
123 #endif