summaryrefslogtreecommitdiff
path: root/src/cc-compat.h
diff options
context:
space:
mode:
authorPhilip Kelley <phkelley@hotmail.com>2013-01-22 09:25:15 -0500
committerPhilip Kelley <phkelley@hotmail.com>2013-01-22 09:25:15 -0500
commit47fc264203b2bae9e8a674505ac3502c3e9e71e7 (patch)
treea67f1262d96b090b8746abfeaafe95350bab4b9a /src/cc-compat.h
parentfad251ae02b108ebe83bde3b2948bb7344825437 (diff)
downloadlibgit2-47fc264203b2bae9e8a674505ac3502c3e9e71e7.tar.gz
Fix gen_pktline format specifier for Win32
Diffstat (limited to 'src/cc-compat.h')
-rw-r--r--src/cc-compat.h2
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++ */