aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2003-10-24 13:28:24 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2003-10-24 13:28:24 +0000
commit95bf7b2fd406505c9b7ca8bf84519c605a41c761 (patch)
tree3a540b4c3fc97bdf0e3b5a25c83deac617cd5de5
parent77920ec2258db314f12a598e56eb9525a019daea (diff)
downloadmonitoring-plugins-95bf7b2fd406505c9b7ca8bf84519c605a41c761.tar.gz
Ignore __attribute__ for non-GNU compilers
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@753 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--plugins/common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/common.h b/plugins/common.h
index 0c21fbeb..3e892522 100644
--- a/plugins/common.h
+++ b/plugins/common.h
@@ -180,3 +180,8 @@ enum {
# define textdomain(Domain)
# define bindtextdomain(Package, Directory)
#endif
+
+/* For non-GNU compilers to ignore __attribute__ */
+#ifndef __GNUC__
+# define __attribute__(x) /* do nothing */
+#endif