Skip to content

Commit

Permalink
Windows: Fix PRIuMAX definition.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Sixt committed Jun 23, 2008
1 parent a42a0c2 commit 82f8d96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compat/mingw.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 82f8d96

Please sign in to comment.