X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fovs-atomic.h;h=a9ae4aec560f6f9418953a51c62bc95e3f170a3f;hb=fd76a6f94338b668175336434b156827458b5e7d;hp=a0a34f30f4177c5ab2c8f23d35451187bc4301b8;hpb=31a3fc6e3e9ce68d8bfebf65150d9455b9334dda;p=sliver-openvswitch.git diff --git a/lib/ovs-atomic.h b/lib/ovs-atomic.h index a0a34f30f..a9ae4aec5 100644 --- a/lib/ovs-atomic.h +++ b/lib/ovs-atomic.h @@ -21,7 +21,7 @@ * * This library implements atomic operations with an API based on the one * defined in C11. It includes multiple implementations for compilers and - * libraries with varying degrees of built-in support for C11, including an + * libraries with varying degrees of built-in support for C11, including a * fallback implementation for systems that have pthreads but no other support * for atomics. * @@ -238,9 +238,11 @@ #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 __GNUC__ >= 4 + #elif HAVE_GCC4_ATOMICS #include "ovs-atomic-gcc4+.h" #else #include "ovs-atomic-pthreads.h"