[FFmpeg-cvslog] atomic: prefer gcc builtins over win32 atomics, if available.

Hendrik Leppkes git at videolan.org
Wed Mar 13 02:12:51 CET 2013


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Sun Mar 10 23:03:42 2013 +0100| [d6d369bf1370999896500ae7eb5b9447ab635a3d] | committer: Martin Storsjö

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 at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d6d369bf1370999896500ae7eb5b9447ab635a3d
---

 libavutil/atomic.h |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavutil/atomic.h b/libavutil/atomic.h
index 577e471..773c5df 100644
--- a/libavutil/atomic.h
+++ b/libavutil/atomic.h
@@ -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



More information about the ffmpeg-cvslog mailing list