Browse Source

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>
tags/n2.0
Hendrik Leppkes Michael Niedermayer 12 years ago
parent
commit
b91459e565
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      libavutil/atomic.h

+ 3
- 3
libavutil/atomic.h View File

@@ -23,10 +23,10 @@

#include "config.h"

#if HAVE_MEMORYBARRIER
#include "atomic_win32.h"
#elif HAVE_SYNC_VAL_COMPARE_AND_SWAP
#if HAVE_SYNC_VAL_COMPARE_AND_SWAP
#include "atomic_gcc.h"
#elif HAVE_MEMORYBARRIER
#include "atomic_win32.h"
#elif HAVE_MACHINE_RW_BARRIER
#include "atomic_suncc.h"
#else


Loading…
Cancel
Save