diff options
author | Philip Kelley <phkelley@hotmail.com> | 2013-01-22 09:25:15 -0500 |
---|---|---|
committer | Philip Kelley <phkelley@hotmail.com> | 2013-01-22 09:25:15 -0500 |
commit | 47fc264203b2bae9e8a674505ac3502c3e9e71e7 (patch) | |
tree | a67f1262d96b090b8746abfeaafe95350bab4b9a /src/cc-compat.h | |
parent | fad251ae02b108ebe83bde3b2948bb7344825437 (diff) | |
download | libgit2-47fc264203b2bae9e8a674505ac3502c3e9e71e7.tar.gz |
Fix gen_pktline format specifier for Win32
Diffstat (limited to 'src/cc-compat.h')
-rw-r--r-- | src/cc-compat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cc-compat.h b/src/cc-compat.h index cc7c90859..a5e4ce17e 100644 --- a/src/cc-compat.h +++ b/src/cc-compat.h @@ -38,8 +38,10 @@ /* Define the printf format specifer to use for size_t output */ #if defined(_MSC_VER) || defined(__MINGW32__) # define PRIuZ "Iu" +# define PRIxZ "Ix" #else # define PRIuZ "zu" +# define PRIxZ "zx" #endif /* Micosoft Visual C/C++ */ |