From b932ef5b3d77b26b8f558bafa3ee416595279dce Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Mon, 21 Mar 2011 19:44:43 +0200 Subject: [PATCH] Fix MSVC warnings when building threads --- src/thread-utils.h | 4 ++++ 1 file changed, 4 insertions(+) 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)