summaryrefslogtreecommitdiffstats
path: root/osdep/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'osdep/atomic.h')
-rw-r--r--osdep/atomic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/osdep/atomic.h b/osdep/atomic.h
index 9e1c5be721..2c6868d518 100644
--- a/osdep/atomic.h
+++ b/osdep/atomic.h
@@ -25,6 +25,7 @@
#if HAVE_STDATOMIC
#include <stdatomic.h>
typedef _Atomic float mp_atomic_float;
+typedef _Atomic int64_t mp_atomic_int64;
#else
// Emulate the parts of C11 stdatomic.h needed by mpv.
@@ -38,6 +39,7 @@ 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;
+typedef struct { int64_t v; } mp_atomic_int64;
#define ATOMIC_VAR_INIT(x) \
{.v = (x)}