mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
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: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
fc8406d01e
commit
d6d369bf13
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user