X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Fcollectd.h;h=3cb0c1bb62d340737a763841202655ebcb6f99c8;hb=cc893903f8453dc96a797b319bdd4e294052de6f;hp=2bfc3a2fae92910ecb6f13addc3ecd8b7a8d3701;hpb=8935a0f9f1f3a51736da6174bcc2575934579c56;p=collectd.git 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__