diff options
Diffstat (limited to 'compat/w32pthreads.h')
-rw-r--r-- | compat/w32pthreads.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compat/w32pthreads.h b/compat/w32pthreads.h index c25a191..3a2f68f 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" |