summaryrefslogtreecommitdiff
path: root/src/cc-compat.h
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2009-12-21 15:54:50 +0000
committerRamsay Jones <ramsay@ramsay1.demon.co.uk>2010-01-20 20:15:07 +0000
commita1c0728d12b170e1e643f219fab53b03cd4e1b09 (patch)
treeeab36c05f0ca151dc5732210223d0abc9e9ab321 /src/cc-compat.h
parentcfe3a027ab12506d4144ee8a35669ae8fc4b7ab1 (diff)
downloadlibgit2-a1c0728d12b170e1e643f219fab53b03cd4e1b09.tar.gz
Add support for the MinGW platform
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Diffstat (limited to 'src/cc-compat.h')
-rw-r--r--src/cc-compat.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cc-compat.h b/src/cc-compat.h
index a256495f5..488de7f11 100644
--- a/src/cc-compat.h
+++ b/src/cc-compat.h
@@ -40,10 +40,10 @@
#endif
/* Define the printf format specifer to use for size_t output */
-#if !defined(_MSC_VER)
-# define PRIuZ "zu"
-#else
+#if defined(_MSC_VER) || defined(__MINGW32__)
# define PRIuZ "Iu"
+#else
+# define PRIuZ "zu"
#endif
/* Micosoft Visual C/C++ */