diff options
author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2009-12-21 15:54:50 +0000 |
---|---|---|
committer | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2010-01-20 20:15:07 +0000 |
commit | a1c0728d12b170e1e643f219fab53b03cd4e1b09 (patch) | |
tree | eab36c05f0ca151dc5732210223d0abc9e9ab321 /src/cc-compat.h | |
parent | cfe3a027ab12506d4144ee8a35669ae8fc4b7ab1 (diff) | |
download | libgit2-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.h | 6 |
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++ */ |