summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f3ab835)
raw | patch | inline | side by side (parent: f3ab835)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Jul 2016 11:34:00 +0000 (13:34 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Jul 2016 11:34:00 +0000 (13:34 +0200) |
src/daemon/collectd.h | patch | blob | history |
diff --git a/src/daemon/collectd.h b/src/daemon/collectd.h
index 5c72fbda1f041dbee134a93e2f5c2a9c42c48ee8..2bfc3a2fae92910ecb6f13addc3ecd8b7a8d3701 100644 (file)
--- a/src/daemon/collectd.h
+++ b/src/daemon/collectd.h
#endif
/* Only enable __attribute__() for compilers known to support it. */
-#if defined(__clang__)
-# define clang_attr(x) __attribute__(x)
-# define gcc_attr(x) /**/
-#elif __GNUC__
-# define clang_attr(x) /**/
-# define gcc_attr(x) __attribute__(x)
-#else
-# define clang_attr(x) /**/
-# define gcc_attr(x) /**/
+#if !defined(__clang__) && !defined(__GNUC__)
# define __attribute__(x) /**/
#endif