summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
Diffstat (limited to 'osdep')
-rw-r--r--osdep/atomic.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/osdep/atomic.h b/osdep/atomic.h
index 1d3e158afa..a5608fa78a 100644
--- a/osdep/atomic.h
+++ b/osdep/atomic.h
@@ -24,6 +24,7 @@
#if HAVE_STDATOMIC
#include <stdatomic.h>
+typedef _Atomic float mp_atomic_float;
#else
// Emulate the parts of C11 stdatomic.h needed by mpv.
@@ -36,6 +37,8 @@ typedef struct { long long v; } atomic_llong;
typedef struct { uint_least32_t v; } atomic_uint_least32_t;
typedef struct { unsigned long long v; } atomic_ullong;
+typedef struct { float v; } mp_atomic_float;
+
#define ATOMIC_VAR_INIT(x) \
{.v = (x)}