]> rtime.felk.cvut.cz Git - git.git/commitdiff
Provide fallback definitions of PRIu32 and PRIx32
authorJohannes Sixt <johannes.sixt@telecom.at>
Wed, 9 Jul 2008 20:38:14 +0000 (22:38 +0200)
committerJunio 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

index 545df5924247c9d4ffe700db6c158715561f6a62..8c7e11473390c14956e43843c17a2d85a336a087 100644 (file)
 #define PRIuMAX "llu"
 #endif
 
+#ifndef PRIu32
+#define PRIu32 "u"
+#endif
+
+#ifndef PRIx32
+#define PRIx32 "x"
+#endif
+
 #ifndef PATH_SEP
 #define PATH_SEP ':'
 #endif