summaryrefslogtreecommitdiff
path: root/src/cc-compat.h
diff options
context:
space:
mode:
authorSven Strickroth <email@cs-ware.de>2014-10-12 17:21:17 +0200
committerSven Strickroth <email@cs-ware.de>2014-10-13 16:32:26 +0200
commitcf1013a888b16c22e8877fa0c8c9532972cb1b67 (patch)
tree4fef3b333f18bff3cfefe592d678c56a0b2b5a6f /src/cc-compat.h
parent9e49cb7a4ba4f6961e3681cb59421cec04a50893 (diff)
downloadlibgit2-cf1013a888b16c22e8877fa0c8c9532972cb1b67.tar.gz
There is no "z" size specifier on MSVC
See http://msdn.microsoft.com/en-us/library/tcxf1dw6.aspx and https://stackoverflow.com/questions/6655410/why-doesnt-zd-printf-format-work-in-vs2010 Signed-off-by: Sven Strickroth <email@cs-ware.de>
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 0b66d8ba1..cefdc928b 100644
--- a/src/cc-compat.h
+++ b/src/cc-compat.h
@@ -49,9 +49,11 @@
#if defined(_MSC_VER) || defined(__MINGW32__)
# define PRIuZ "Iu"
# define PRIxZ "Ix"
+# define PRIdZ "Id"
#else
# define PRIuZ "zu"
# define PRIxZ "zx"
+# define PRIdZ "zd"
#endif
/* Micosoft Visual C/C++ */