Commit 97be5d4d authored by Hendrik Leppkes's avatar Hendrik Leppkes

w32pthreads: fix mingw build on x86 with -msse2 or higher

When SSE2 or higher compiler optimizations are used, mingw uses
the _mm_mfence intrinsic for MemoryBarrier, however it doesn't include
the appropriate headers automatically.
parent e12908d7
......@@ -39,6 +39,11 @@
#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>
#endif
#include "libavutil/attributes.h"
#include "libavutil/common.h"
#include "libavutil/internal.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment