2
0
mirror of https://github.com/boostorg/thread.git synced 2026-01-26 19:12:11 +00:00

The previous mingw32 fix unfortunately broke mingw-w64, so that is now fixed too.

This commit is contained in:
Niall Douglas
2014-08-02 21:38:31 +01:00
parent 26042ca26a
commit 78f1044c68

View File

@@ -179,6 +179,8 @@ namespace boost
#ifdef _MSC_VER
long _InterlockedCompareExchange(long volatile *, long, long);
#pragma intrinsic(_InterlockedCompareExchange)
#elif defined(__MINGW64_VERSION_MAJOR)
long _InterlockedCompareExchange(long volatile *, long, long);
#else
// Mingw doesn't provide intrinsics
#define _InterlockedCompareExchange InterlockedCompareExchange