summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-11-28 19:23:02 +0100
committerwm4 <wm4@nowhere>2019-11-29 12:14:43 +0100
commit5b5d163a6a559ad9fa9559e4aa36ac02d37daa94 (patch)
treea054e745c41357695262d7015dc5b08c49c06224
parent0cd612530cf39639fe8be7b4b5ce6b0c771b1a1d (diff)
downloadmpv-5b5d163a6a559ad9fa9559e4aa36ac02d37daa94.tar.bz2
mpv-5b5d163a6a559ad9fa9559e4aa36ac02d37daa94.tar.xz
atomic: add mp_atomic_uint64
-rw-r--r--osdep/atomic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/osdep/atomic.h b/osdep/atomic.h
index 2c6868d518..0c4de4b578 100644
--- a/osdep/atomic.h
+++ b/osdep/atomic.h
@@ -26,6 +26,7 @@
#include <stdatomic.h>
typedef _Atomic float mp_atomic_float;
typedef _Atomic int64_t mp_atomic_int64;
+typedef _Atomic uint64_t mp_atomic_uint64;
#else
// Emulate the parts of C11 stdatomic.h needed by mpv.
@@ -40,6 +41,7 @@ typedef struct { unsigned long long v; } atomic_ullong;
typedef struct { float v; } mp_atomic_float;
typedef struct { int64_t v; } mp_atomic_int64;
+typedef struct { uint64_t v; } mp_atomic_uint64;
#define ATOMIC_VAR_INIT(x) \
{.v = (x)}