From 240a85cf10b0ff22a4690d7b01a652b121026d41 Mon Sep 17 00:00:00 2001 From: Linquize Date: Thu, 22 Oct 2015 07:56:34 +0800 Subject: [PATCH] inttypes.h is built-in header file since MSVC 2013 The reason is that the types defined in libgit2's inttypes.h collide with system inttypes.h 3rd party library header files may directly reference MSVC's built-in inttypes.h Fixes #3476 --- include/git2/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/git2/common.h b/include/git2/common.h index 748226385..577906115 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -20,7 +20,7 @@ # define GIT_END_DECL /* empty */ #endif -#ifdef _MSC_VER +#if defined(_MSC_VER) && _MSC_VER < 1800 GIT_BEGIN_DECL # include "inttypes.h" GIT_END_DECL