diff options
| author | Edward Thomson <ethomson@github.com> | 2016-02-07 14:10:38 -0800 |
|---|---|---|
| committer | Edward Thomson <ethomson@github.com> | 2016-02-08 16:30:41 -0800 |
| commit | 6e0fc1a63138f959cd2aac05e85f70cf9e22a189 (patch) | |
| tree | 4bf52ae3fac9d030abb57ec6e0c919d6636574a1 /src/thread-utils.h | |
| parent | 8a6d667763eb04ad872693ca76352821d1dee78c (diff) | |
| download | libgit2-6e0fc1a63138f959cd2aac05e85f70cf9e22a189.tar.gz | |
mingw: use gcc-like memory barrier
Use the gcc-like memory barrier (__sync_synchronize) on mingw.
Diffstat (limited to 'src/thread-utils.h')
| -rw-r--r-- | src/thread-utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread-utils.h b/src/thread-utils.h index dd1136caf..14c8a41ff 100644 --- a/src/thread-utils.h +++ b/src/thread-utils.h @@ -275,7 +275,7 @@ GIT_INLINE(int) git_atomic_get(git_atomic *a) extern int git_online_cpus(void); -#if defined(GIT_THREADS) && defined(GIT_WIN32) +#if defined(GIT_THREADS) && defined(_MSC_VER) # define GIT_MEMORY_BARRIER MemoryBarrier() #elif defined(GIT_THREADS) # define GIT_MEMORY_BARRIER __sync_synchronize() |
