From 6e94a1efbca605957d6fc56ae068f30ef57c3c01 Mon Sep 17 00:00:00 2001 From: Jacques Germishuys Date: Sun, 27 Apr 2014 14:25:49 +0200 Subject: [PATCH] _InterlockedExchange expects a volatile LONG --- src/global.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/global.c b/src/global.c index 15baf1eb8..2ed5b4c6d 100644 --- a/src/global.c +++ b/src/global.c @@ -74,7 +74,7 @@ static void git__shutdown(void) #if defined(GIT_THREADS) && defined(GIT_WIN32) static DWORD _tls_index; -static DWORD _mutex = 0; +static volatile LONG _mutex = 0; static int synchronized_threads_init() {