Fix MSVC warnings when building threads

This commit is contained in:
Vicent Marti 2011-03-21 19:44:43 +02:00
parent 567fc1d20c
commit b932ef5b3d

View File

@ -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)