Skip to content
Snippets Groups Projects
Commit b91459e5 authored by Hendrik Leppkes's avatar Hendrik Leppkes Committed by Michael Niedermayer
Browse files

atomic: prefer gcc builtins over win32 atomics, if available.


The mingw win32 atomics appear to be faulty, so they should not be used
if the gcc ones are available.

Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent c48828f7
No related branches found
No related tags found
No related merge requests found
...@@ -23,10 +23,10 @@ ...@@ -23,10 +23,10 @@
#include "config.h" #include "config.h"
#if HAVE_MEMORYBARRIER #if HAVE_SYNC_VAL_COMPARE_AND_SWAP
#include "atomic_win32.h"
#elif HAVE_SYNC_VAL_COMPARE_AND_SWAP
#include "atomic_gcc.h" #include "atomic_gcc.h"
#elif HAVE_MEMORYBARRIER
#include "atomic_win32.h"
#elif HAVE_MACHINE_RW_BARRIER #elif HAVE_MACHINE_RW_BARRIER
#include "atomic_suncc.h" #include "atomic_suncc.h"
#else #else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment