summaryrefslogtreecommitdiff
path: root/compat/mingw.h
diff options
context:
space:
mode:
authorJohannes Sixt <johannes.sixt@telecom.at>2007-03-23 09:57:05 (GMT)
committerJohannes Sixt <johannes.sixt@telecom.at>2008-06-23 11:40:30 (GMT)
commit82f8d969f581c4bd4a782565709466046d962d81 (patch)
tree5f7c4a379ba3e08adfc7f1cb5dd08317afa635ba /compat/mingw.h
parenta42a0c2e715d6783a6f9b75a8f2c9a48bf499c47 (diff)
downloadgit-82f8d969f581c4bd4a782565709466046d962d81.zip
git-82f8d969f581c4bd4a782565709466046d962d81.tar.gz
git-82f8d969f581c4bd4a782565709466046d962d81.tar.bz2
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 <johannes.sixt@telecom.at>
Diffstat (limited to 'compat/mingw.h')
-rw-r--r--compat/mingw.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index 46fd8da..fad855e 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"