]> git.sesse.net Git - vlc/blobdiff - include/vlc_atomic.h
Atom: use volatile keyword
[vlc] / include / vlc_atomic.h
index 2b0ff88e6783dc21bfff7597846a982251ae9658..9370fbc899b4d36ea70678e2daab267079a9f50a 100644 (file)
@@ -31,8 +31,8 @@
  */
 typedef union
 {
-    uintptr_t u;
-    intptr_t  s;
+    volatile uintptr_t u;
+    volatile intptr_t  s;
 } vlc_atomic_t;
 
 /* All functions return the atom value _after_ the operation. */