Commit b932ef5b by Vicent Marti

Fix MSVC warnings when building threads

parent 567fc1d2
...@@ -5,7 +5,11 @@ ...@@ -5,7 +5,11 @@
/* Common operations even if threading has been disabled */ /* Common operations even if threading has been disabled */
typedef struct { typedef struct {
#if defined(_MSC_VER)
volatile long val;
#else
volatile int val; volatile int val;
#endif
} git_atomic; } git_atomic;
GIT_INLINE(void) git_atomic_set(git_atomic *a, int val) GIT_INLINE(void) git_atomic_set(git_atomic *a, int val)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment