From: Johannes Sixt Date: Wed, 9 Jul 2008 20:38:14 +0000 (+0200) Subject: Provide fallback definitions of PRIu32 and PRIx32 X-Git-Tag: v1.6.0-rc0~97 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=607bb3ff885727a099b39e16abd86f17ae502306;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/git-compat-util.h b/git-compat-util.h index 545df5924..8c7e11473 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