summaryrefslogtreecommitdiff
path: root/compat/w32pthreads.h
diff options
context:
space:
mode:
Diffstat (limited to 'compat/w32pthreads.h')
-rw-r--r--compat/w32pthreads.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/w32pthreads.h b/compat/w32pthreads.h
index 3bc69b31cb..2fe2a5ab97 100644
--- a/compat/w32pthreads.h
+++ b/compat/w32pthreads.h
@@ -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"