diff options
author | NRK <nrk@disroot.org> | 2023-10-19 18:18:52 +0600 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-10-20 21:31:09 +0200 |
commit | 2070331f649a1e19021d62d4e3a176dcd40732f4 (patch) | |
tree | a41f1f4931ba1e3d4ae242be285eee18de650f38 /filters | |
parent | 2fa695c3f9d4164344228ef4083e87369de3bb33 (diff) | |
download | mpv-2070331f649a1e19021d62d4e3a176dcd40732f4.tar.bz2 mpv-2070331f649a1e19021d62d4e3a176dcd40732f4.tar.xz |
osdep: remove atomic.h
replace it with <stdatomic.h> and replace the mp_atomic_* typedefs with
explicit _Atomic qualified types.
also add missing config.h includes on some files.
Diffstat (limited to 'filters')
-rw-r--r-- | filters/f_async_queue.c | 4 | ||||
-rw-r--r-- | filters/filter.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/filters/f_async_queue.c b/filters/f_async_queue.c index 5ee32be5fa..ef8ae15946 100644 --- a/filters/f_async_queue.c +++ b/filters/f_async_queue.c @@ -4,7 +4,7 @@ #include "audio/aframe.h" #include "common/common.h" #include "common/msg.h" -#include "osdep/atomic.h" +#include <stdatomic.h> #include "f_async_queue.h" #include "filter_internal.h" @@ -16,7 +16,7 @@ struct mp_async_queue { }; struct async_queue { - mp_atomic_uint64 refcount; + _Atomic uint64_t refcount; pthread_mutex_t lock; diff --git a/filters/filter.c b/filters/filter.c index 0fd79b83e2..c3d8bc059c 100644 --- a/filters/filter.c +++ b/filters/filter.c @@ -6,7 +6,7 @@ #include "common/common.h" #include "common/global.h" #include "common/msg.h" -#include "osdep/atomic.h" +#include <stdatomic.h> #include "osdep/timer.h" #include "video/hwdec.h" #include "video/img_format.h" |