]> asedeno.scripts.mit.edu Git - git.git/commitdiff
Windows: Fix PRIuMAX definition.
authorJohannes Sixt <johannes.sixt@telecom.at>
Fri, 23 Mar 2007 09:57:05 +0000 (10:57 +0100)
committerJohannes Sixt <johannes.sixt@telecom.at>
Mon, 23 Jun 2008 11:40:30 +0000 (13:40 +0200)
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 <johannes.sixt@telecom.at>
compat/mingw.h

index 46fd8da06e75484e8f5414bfb85b99cecd82236a..fad855ef99549d0ee36f9272cbaa76419d8058b6 100644 (file)
@@ -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"