From 6b943f171b24e6eb2bf3827554d2536410ed7fe8 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Fri, 23 Mar 2007 10:57:05 +0100 Subject: [PATCH] Fix PRIuMAX definition for MinGW. Since MinGW calls into Microsoft's MSVCRT.DLL, it must use the printf format that this DLL uses for 64bit integers, which is %I64u instead of %llu. --- git-compat-util.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/git-compat-util.h b/git-compat-util.h index bf9dbe288a..428f171379 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -74,7 +74,11 @@ #endif #ifndef PRIuMAX +#ifndef __MINGW32__ #define PRIuMAX "llu" +#else +#define PRIuMAX "I64u" +#endif #endif #ifdef __GNUC__