summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2023-10-19 18:18:52 +0600
committersfan5 <sfan5@live.de>2023-10-20 21:31:09 +0200
commit2070331f649a1e19021d62d4e3a176dcd40732f4 (patch)
treea41f1f4931ba1e3d4ae242be285eee18de650f38 /common
parent2fa695c3f9d4164344228ef4083e87369de3bb33 (diff)
downloadmpv-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 'common')
-rw-r--r--common/msg.c2
-rw-r--r--common/stats.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/msg.c b/common/msg.c
index 2dc4c1e7c2..0984cf0f5e 100644
--- a/common/msg.c
+++ b/common/msg.c
@@ -27,7 +27,7 @@
#include "mpv_talloc.h"
#include "misc/bstr.h"
-#include "osdep/atomic.h"
+#include <stdatomic.h>
#include "common/common.h"
#include "common/global.h"
#include "misc/bstr.h"
diff --git a/common/stats.c b/common/stats.c
index bd6c63e202..2336d80c75 100644
--- a/common/stats.c
+++ b/common/stats.c
@@ -8,7 +8,7 @@
#include "misc/node.h"
#include "msg.h"
#include "options/m_option.h"
-#include "osdep/atomic.h"
+#include <stdatomic.h>
#include "osdep/timer.h"
#include "stats.h"