From: Ruben Kerkhof Date: Sat, 23 Jul 2016 11:35:27 +0000 (+0200) Subject: collectd.h: guard define of __attribute__ X-Git-Tag: collectd-5.6.0~197 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c3c3fe0a0fc41575b5719ea5c805acbd7878c7fb;p=collectd.git collectd.h: guard define of __attribute__ It might have already been defined to a no-op in --- diff --git a/src/daemon/collectd.h b/src/daemon/collectd.h index 2bfc3a2f..3cb0c1bb 100644 --- a/src/daemon/collectd.h +++ b/src/daemon/collectd.h @@ -276,7 +276,9 @@ typedef int _Bool; /* 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__