Commit c299b6fd authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/buffer: Move USE_ATOMICS to thread.h to avoid it becoming out of sync with it

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 32eadfe4
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
#include "mem.h" #include "mem.h"
#include "thread.h" #include "thread.h"
#define USE_ATOMICS !(HAVE_PTHREADS || HAVE_W32THREADS)
AVBufferRef *av_buffer_create(uint8_t *data, int size, AVBufferRef *av_buffer_create(uint8_t *data, int size,
void (*free)(void *opaque, uint8_t *data), void (*free)(void *opaque, uint8_t *data),
void *opaque, int flags) void *opaque, int flags)
......
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
#if HAVE_PTHREADS || HAVE_W32THREADS || HAVE_OS2THREADS #if HAVE_PTHREADS || HAVE_W32THREADS || HAVE_OS2THREADS
#define USE_ATOMICS 0
#if HAVE_PTHREADS #if HAVE_PTHREADS
#include <pthread.h> #include <pthread.h>
#elif HAVE_OS2THREADS #elif HAVE_OS2THREADS
...@@ -43,6 +45,8 @@ ...@@ -43,6 +45,8 @@
#else #else
#define USE_ATOMICS 1
#define AVMutex char #define AVMutex char
#define ff_mutex_init(mutex, attr) (0) #define ff_mutex_init(mutex, attr) (0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment