diff options
author | Martin Storsjö <martin@martin.st> | 2015-10-28 22:20:43 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-10-30 20:15:11 +0200 |
commit | 407ac22322e5ce67996ec54ef619cafa4c9ceb78 (patch) | |
tree | b3a996e86ecf5985496dd23cc837360e53ce001c /compat | |
parent | a0562e531723923b632684c7b51a9dd584bf534f (diff) | |
download | ffmpeg-streaming-407ac22322e5ce67996ec54ef619cafa4c9ceb78.zip ffmpeg-streaming-407ac22322e5ce67996ec54ef619cafa4c9ceb78.tar.gz |
w32pthreads: Map MemoryBarrier to __sync_synchronize on mingw
This fixes building on older mingw (both mingw.org and mingw64;
mingw64 from before May 2011).
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'compat')
-rw-r--r-- | compat/w32pthreads.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/w32pthreads.h b/compat/w32pthreads.h index 3bc69b3..2fe2a5a 100644 --- a/compat/w32pthreads.h +++ b/compat/w32pthreads.h @@ -39,9 +39,9 @@ #include <windows.h> #include <process.h> -/* MinGW requires the intrinsics header for the pthread_once fallback code */ #if _WIN32_WINNT < 0x0600 && defined(__MINGW32__) -#include <intrin.h> +#undef MemoryBarrier +#define MemoryBarrier __sync_synchronize #endif #include "libavutil/attributes.h" |