aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2011-12-25 20:59:39 +0000
committerEd Schouten <ed@FreeBSD.org>2011-12-25 20:59:39 +0000
commitd9171fdcc94eecff213d233897894041678bc0c4 (patch)
tree004b9b36738e4d07f5c081ace3b2df2786019e0e /include
parent367bebd40294277dfd72dd480c03f6be0fca5d44 (diff)
Notes
Diffstat (limited to 'include')
-rw-r--r--include/stdatomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdatomic.h b/include/stdatomic.h
index 96aabc3c7c8ea..6913d680a37fe 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