Commit b932ef5b3d77b26b8f558bafa3ee416595279dce

Vicent Marti 2011-03-21T19:44:43

Fix MSVC warnings when building threads

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/thread-utils.h b/src/thread-utils.h
index e542639..20d6022 100644
--- a/src/thread-utils.h
+++ b/src/thread-utils.h
@@ -5,7 +5,11 @@
 
 /* Common operations even if threading has been disabled */
 typedef struct {
+#if defined(_MSC_VER)
+	volatile long val;
+#else
 	volatile int val;
+#endif
 } git_atomic;
 
 GIT_INLINE(void) git_atomic_set(git_atomic *a, int val)