diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-10-04 21:11:51 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-10-05 16:21:16 -0400 |
commit | c060854ed5b42b76eda40e290851a315dbbaea04 (patch) | |
tree | 18361559cf0cbcbc915273284277e6b00f7d9a46 /include/git2/common.h | |
parent | 72d6a20be073c2854cca220c851c977171a5a465 (diff) | |
download | libgit2-c060854ed5b42b76eda40e290851a315dbbaea04.tar.gz |
msvc: Properly handle inttypes.h/stdint.h
Diffstat (limited to 'include/git2/common.h')
-rw-r--r-- | include/git2/common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/git2/common.h b/include/git2/common.h index 08498167..a004be99 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -11,6 +11,12 @@ #include <time.h> #include <stdlib.h> +#ifdef _MSC_VER +# include "inttypes.h" +#else +# include <inttypes.h> +#endif + #ifdef __cplusplus # define GIT_BEGIN_DECL extern "C" { # define GIT_END_DECL } |