summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8935a0f)
raw | patch | inline | side by side (parent: 8935a0f)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Jul 2016 11:35:27 +0000 (13:35 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Jul 2016 11:35:27 +0000 (13:35 +0200) |
It might have already been defined to a no-op in <sys/cdefs.h>
src/daemon/collectd.h | patch | blob | history |
diff --git a/src/daemon/collectd.h b/src/daemon/collectd.h
index 2bfc3a2fae92910ecb6f13addc3ecd8b7a8d3701..3cb0c1bb62d340737a763841202655ebcb6f99c8 100644 (file)
--- a/src/daemon/collectd.h
+++ b/src/daemon/collectd.h
/* Only enable __attribute__() for compilers known to support it. */
#if !defined(__clang__) && !defined(__GNUC__)
-# define __attribute__(x) /**/
+# if !defined(__attribute__)
+# define __attribute__(x) /**/
+# endif
#endif
#if defined(COLLECT_DEBUG) && COLLECT_DEBUG && defined(__GNUC__) && __GNUC__