From 407ac22322e5ce67996ec54ef619cafa4c9ceb78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 28 Oct 2015 22:20:43 +0200 Subject: [PATCH] w32pthreads: Map MemoryBarrier to __sync_synchronize on mingw MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes building on older mingw (both mingw.org and mingw64; mingw64 from before May 2011). Signed-off-by: Martin Storsjö --- compat/w32pthreads.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compat/w32pthreads.h b/compat/w32pthreads.h index 3bc69b31cb..2fe2a5ab97 100644 --- a/compat/w32pthreads.h +++ b/compat/w32pthreads.h @@ -39,9 +39,9 @@ #include #include -/* MinGW requires the intrinsics header for the pthread_once fallback code */ #if _WIN32_WINNT < 0x0600 && defined(__MINGW32__) -#include +#undef MemoryBarrier +#define MemoryBarrier __sync_synchronize #endif #include "libavutil/attributes.h"