diff --git a/include/vlc_atomic.h b/include/vlc_atomic.h index 107f6df83d037ed36b69e6a3b0240c615192cdbe..fafe7065cc487d7bc66465545fdd4363229b24d5 100644 --- a/include/vlc_atomic.h +++ b/include/vlc_atomic.h @@ -37,6 +37,10 @@ using std::memory_order_acq_rel; #endif # include <vlc_common.h> +#define VLC_STATIC_RC { \ + .refs = ATOMIC_VAR_INIT(0) \ +} + typedef struct vlc_atomic_rc_t { atomic_uintptr_t refs; } vlc_atomic_rc_t;