On Wed, Oct 14, 2015 at 11:20 PM, Hendrik Leppkes <h.lepp...@gmail.com> wrote: > 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. > --- > compat/w32pthreads.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/compat/w32pthreads.h b/compat/w32pthreads.h > index 2aff72a..6b602c5 100644 > --- a/compat/w32pthreads.h > +++ b/compat/w32pthreads.h > @@ -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" > -- > 2.5.3.windows.1 >
Pushed. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel