diff options
author | Jacques Germishuys <jacquesg@striata.com> | 2014-04-27 14:25:49 +0200 |
---|---|---|
committer | Jacques Germishuys <jacquesg@striata.com> | 2014-05-01 10:49:51 +0200 |
commit | 6e94a1efbca605957d6fc56ae068f30ef57c3c01 (patch) | |
tree | e591163e953420d181c4b9040aea94623832d086 | |
parent | 1017f81f0049f493508c1409418af725e8d6998f (diff) | |
download | libgit2-6e94a1efbca605957d6fc56ae068f30ef57c3c01.tar.gz |
_InterlockedExchange expects a volatile LONG
-rw-r--r-- | src/global.c | 2 |
1 files changed, 1 insertions, 1 deletions
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() { |