Commit 46c2c1d53891ab7f701016204562ab5524596035

Sven Strickroth 2012-12-28T13:29:16

Fixed compilation with VS >= 2010 Starting with VS2010 MS ships a stdint.h. Signed-off-by: Sven Strickroth <email@cs-ware.de>

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