diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-09-29 16:23:24 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-09-29 16:23:24 +0200 |
commit | 780bea6e261cf19cb4bf826de343afcdb362f1b7 (patch) | |
tree | ebe50ae63e61c34b59177d4905cc472f8e610bf8 /src/cc-compat.h | |
parent | c103d7b4b7e5fff1e5ec548ca24c16b1d2be33b8 (diff) | |
download | libgit2-780bea6e261cf19cb4bf826de343afcdb362f1b7.tar.gz |
mingw: Fix printf identifiers
Diffstat (limited to 'src/cc-compat.h')
-rw-r--r-- | src/cc-compat.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cc-compat.h b/src/cc-compat.h index cce4ca9b1..78dfba7d1 100644 --- a/src/cc-compat.h +++ b/src/cc-compat.h @@ -65,6 +65,13 @@ # define PRIuZ "zu" #endif +/* Define the printf format for 64 bit types */ +#if defined(__MINGW32__) +# define PRIdMAX "I64d" +#else +# define PRIdMAX "lld" +#endif + /* Micosoft Visual C/C++ */ #if defined(_MSC_VER) /* disable "deprecated function" warnings */ |