From: Johannes Sixt Date: Fri, 23 Mar 2007 09:57:05 +0000 (+0100) Subject: Windows: Fix PRIuMAX definition. X-Git-Tag: v1.6.0-rc0~159^2~23 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=82f8d969f581c4bd4a782565709466046d962d81;p=git.git Windows: Fix PRIuMAX definition. Since GIT calls into Microsoft's MSVCRT.DLL, it must use the printf format that this DLL uses for 64-bit integers, which is %I64u instead of %llu. Signed-off-by: Johannes Sixt --- diff --git a/compat/mingw.h b/compat/mingw.h index 46fd8da06..fad855ef9 100644 --- a/compat/mingw.h +++ b/compat/mingw.h @@ -161,3 +161,4 @@ int mingw_rename(const char*, const char*); #define has_dos_drive_prefix(path) (isalpha(*(path)) && (path)[1] == ':') #define is_dir_sep(c) ((c) == '/' || (c) == '\\') #define PATH_SEP ';' +#define PRIuMAX "I64u"