diff options
Diffstat (limited to 'src/thread-utils.h')
-rw-r--r-- | src/thread-utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/thread-utils.h b/src/thread-utils.h index e542639c8..20d6022ea 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) |