summaryrefslogtreecommitdiff
path: root/src
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
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')
-rw-r--r--src/cc-compat.h6
-rw-r--r--src/common.h2
2 files changed, 4 insertions, 4 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++ */
diff --git a/src/common.h b/src/common.h
index 5cb9d1b56..35df53402 100644
--- a/src/common.h
+++ b/src/common.h
@@ -4,7 +4,7 @@
/** Force 64 bit off_t size on POSIX. */
#define _FILE_OFFSET_BITS 64
-#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
+#if defined(_WIN32) && !defined(__CYGWIN__)
#define GIT_WIN32 1
#endif