1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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>
This commit is contained in:
Martin Storsjö 2015-10-28 22:20:43 +02:00
parent a0562e5317
commit 407ac22322

View File

@ -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"