projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3ab835
)
collectd.h: remove unused defines
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Jul 2016 11:34:00 +0000
(13:34 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Jul 2016 11:34:00 +0000
(13:34 +0200)
src/daemon/collectd.h
patch
|
blob
|
history
diff --git
a/src/daemon/collectd.h
b/src/daemon/collectd.h
index
5c72fbd
..
2bfc3a2
100644
(file)
--- 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