summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinquize <linquize@yahoo.com.hk>2015-10-22 07:56:34 +0800
committerCarlos Martín Nieto <cmn@dwim.me>2015-11-04 17:12:48 -0800
commit5e261420c1bdbfc10e600a6e741438697c3fc34a (patch)
tree34e337c42b03d96480084c83f6d76ceda61cf140
parentafed770edaa0acf4f2d9861f1938f399f6e6d019 (diff)
downloadlibgit2-5e261420c1bdbfc10e600a6e741438697c3fc34a.tar.gz
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
-rw-r--r--include/git2/common.h2
1 files changed, 1 insertions, 1 deletions
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