diff options
author | Ben Pfaff <blp@nicira.com> | 2013-08-26 13:03:02 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-08-26 13:03:02 -0700 |
commit | 29ab0cf77c2a03e1c5e61f8899c33ad74762a710 (patch) | |
tree | f954a6fba708f6d3354ae9e1027a8e94ca34dbf0 /lib/ovs-atomic.h | |
parent | 1dd16b9a274afbde46c9d9a4052d720d4cf3c3e2 (diff) |
ovs-atomic: Add native Clang implementation.
With this implementation I get warnings with Clang on GNU/Linux when the
previous patch is not applied. This ought to make it easier to avoid
introducing new problems in the future even without building on FreeBSD.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
Diffstat (limited to 'lib/ovs-atomic.h')
-rw-r--r-- | lib/ovs-atomic.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ovs-atomic.h b/lib/ovs-atomic.h index 3467f11f..a9ae4aec 100644 --- a/lib/ovs-atomic.h +++ b/lib/ovs-atomic.h @@ -238,6 +238,8 @@ #include "ovs-atomic-pthreads.h" #elif HAVE_STDATOMIC_H #include "ovs-atomic-c11.h" + #elif __has_extension(c_atomic) + #include "ovs-atomic-clang.h" #elif __GNUC__ >= 4 && __GNUC_MINOR__ >= 7 #include "ovs-atomic-gcc4.7+.h" #elif HAVE_GCC4_ATOMICS |