X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Fcollectd.h;h=3cb0c1bb62d340737a763841202655ebcb6f99c8;hb=cc893903f8453dc96a797b319bdd4e294052de6f;hp=5c72fbda1f041dbee134a93e2f5c2a9c42c48ee8;hpb=f3ab835abdb893f48ff7ec411902065b6a8f8cae;p=collectd.git diff --git a/src/daemon/collectd.h b/src/daemon/collectd.h index 5c72fbda..3cb0c1bb 100644 --- a/src/daemon/collectd.h +++ b/src/daemon/collectd.h @@ -275,16 +275,10 @@ 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) /**/ -# define __attribute__(x) /**/ +#if !defined(__clang__) && !defined(__GNUC__) +# if !defined(__attribute__) +# define __attribute__(x) /**/ +# endif #endif #if defined(COLLECT_DEBUG) && COLLECT_DEBUG && defined(__GNUC__) && __GNUC__