From 78f1044c684eaf660cfb2d1bbdfd6c4a84087db6 Mon Sep 17 00:00:00 2001 From: Niall Douglas Date: Sat, 2 Aug 2014 21:38:31 +0100 Subject: [PATCH] The previous mingw32 fix unfortunately broke mingw-w64, so that is now fixed too. --- include/boost/thread/win32/thread_primitives.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/thread/win32/thread_primitives.hpp b/include/boost/thread/win32/thread_primitives.hpp index fc22ed48..c8e2e7df 100644 --- a/include/boost/thread/win32/thread_primitives.hpp +++ b/include/boost/thread/win32/thread_primitives.hpp @@ -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