From: Ruben Kerkhof Date: Sat, 23 Jul 2016 11:34:00 +0000 (+0200) Subject: collectd.h: remove unused defines X-Git-Tag: collectd-5.6.0~198 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=8935a0f9f1f3a51736da6174bcc2575934579c56;p=collectd.git collectd.h: remove unused defines --- diff --git a/src/daemon/collectd.h b/src/daemon/collectd.h index 5c72fbda..2bfc3a2f 100644 --- a/src/daemon/collectd.h +++ b/src/daemon/collectd.h @@ -275,15 +275,7 @@ typedef int _Bool; #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