Commit 645e67e863a5369b7c02173f859371d89ac2389d

Vicent Martí 2012-12-28T07:18:55

Merge pull request #1171 from csware/fix-compilation-vs2012 Fixed compilation with =>VS2010

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/include/git2/inttypes.h b/include/git2/inttypes.h
index ead903f..7160842 100644
--- a/include/git2/inttypes.h
+++ b/include/git2/inttypes.h
@@ -40,7 +40,11 @@
 #pragma once
 #endif
 
+#if _MSC_VER >= 1600
+#include <stdint.h>
+#else
 #include "stdint.h"
+#endif
 
 // 7.8 Format conversion of integer types