diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-10-24 13:28:24 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-10-24 13:28:24 +0000 |
commit | 95bf7b2fd406505c9b7ca8bf84519c605a41c761 (patch) | |
tree | 3a540b4c3fc97bdf0e3b5a25c83deac617cd5de5 /plugins/common.h | |
parent | 77920ec2258db314f12a598e56eb9525a019daea (diff) | |
download | monitoring-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
Diffstat (limited to 'plugins/common.h')
-rw-r--r-- | plugins/common.h | 5 |
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 |