From 64fa7f57154701902c3581f000fa00d4613f1adc Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 25 Dec 2011 20:59:39 +0000 Subject: Fix field name. The value field in the atomic structure is called __val; not value. --- include/stdatomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/stdatomic.h b/include/stdatomic.h index 96aabc3..6913d68 100644 --- a/include/stdatomic.h +++ b/include/stdatomic.h @@ -214,7 +214,7 @@ typedef _Atomic(__uintmax_t) atomic_uintmax_t; #if __has_builtin(__sync_swap) /* Clang provides a full-barrier atomic exchange - use it if available. */ #define atomic_exchange_explicit(object, desired, order) \ - __sync_swap(&(object)->value, desired) + __sync_swap(&(object)->__val, desired) #else /* * __sync_lock_test_and_set() is only an acquire barrier in theory (although in -- cgit v1.1