From fdcdb778551b904d57c127d9a3546f6a7c8792d3 Mon Sep 17 00:00:00 2001 From: Waldek Maleska Date: Mon, 26 Oct 2015 14:15:33 +0100 Subject: Correct fscanf formatting string for I64u values This fix is probably purely cosmetic because PRIuMAX is likely identical to SCNuMAX. Nevertheless, when using a function of the scanf() family, the correct interpolation to use is the latter, not the former. Signed-off-by: Waldek Maleska Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- git-compat-util.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'git-compat-util.h') diff --git a/git-compat-util.h b/git-compat-util.h index 6a16e20966..33bb762296 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -237,6 +237,10 @@ extern char *gitbasename(char *); #define PRIuMAX "llu" #endif +#ifndef SCNuMAX +#define SCNuMAX PRIuMAX +#endif + #ifndef PRIu32 #define PRIu32 "u" #endif -- cgit v1.2.3