From 46c2c1d53891ab7f701016204562ab5524596035 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Fri, 28 Dec 2012 13:29:16 +0100 Subject: [PATCH] Fixed compilation with VS >= 2010 Starting with VS2010 MS ships a stdint.h. Signed-off-by: Sven Strickroth --- include/git2/inttypes.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/git2/inttypes.h b/include/git2/inttypes.h index ead903f78..716084219 100644 --- a/include/git2/inttypes.h +++ b/include/git2/inttypes.h @@ -40,7 +40,11 @@ #pragma once #endif +#if _MSC_VER >= 1600 +#include +#else #include "stdint.h" +#endif // 7.8 Format conversion of integer types