Hi,

2015-10-13 13:12 GMT+02:00 Hendrik Leppkes <[email protected]>:
>> So the compiler flag switches the internal implementation of
>> MemoryBarrier, but the mingw headers forgot to include the appropriate
>> headers for it?
>> Is that all thats to it?
>
> Apparently the appropriate header to add would be intrin.h then. Does
> that resolve all troubles?

I thought mingw/gcc didn't have it, but yes, it works. emmintrin.h
looked like it would work for both mingw/gcc and MSVC.

For reference, it is defined in /mingw32/i686-w64-mingw32/include/winnt.h
The second occurrence is the one used, protected by __SSE2__, and
including x86intrin.h there (as in the first occurrence) works.

The attached file is a simple testcase if you want to check that.

-- 
Christophe
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
//#include <x86intrin.h>
//#include <emmintrin.h>
#include <intrin.h>

int main(void) { MemoryBarrier(); return 1; }
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to