aboutsummaryrefslogtreecommitdiff
path: root/lib/compiler.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2013-08-26 13:03:02 -0700
committerBen Pfaff <blp@nicira.com>2013-08-26 13:03:02 -0700
commit29ab0cf77c2a03e1c5e61f8899c33ad74762a710 (patch)
treef954a6fba708f6d3354ae9e1027a8e94ca34dbf0 /lib/compiler.h
parent1dd16b9a274afbde46c9d9a4052d720d4cf3c3e2 (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/compiler.h')
-rw-r--r--lib/compiler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/compiler.h b/lib/compiler.h
index fb4d46cd..ccc949ba 100644
--- a/lib/compiler.h
+++ b/lib/compiler.h
@@ -20,6 +20,9 @@
#ifndef __has_feature
#define __has_feature(x) 0
#endif
+#ifndef __has_extension
+ #define __has_extension(x) 0
+#endif
#if __GNUC__ && !__CHECKER__
#define NO_RETURN __attribute__((__noreturn__))