From: Florian Forster Date: Wed, 17 Nov 2010 09:02:37 +0000 (+0100) Subject: src/oping.c: Remove __attribute__ flags when using non-GNU compiler. X-Git-Tag: liboping-1.5.1~3 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1f1621d9d45b11aa130b85084fb4789e07747e08;p=liboping.git src/oping.c: Remove __attribute__ flags when using non-GNU compiler. --- diff --git a/src/oping.c b/src/oping.c index 776dc0b..8286db0 100644 --- a/src/oping.c +++ b/src/oping.c @@ -1,6 +1,6 @@ /** * Object oriented C module to send ICMP and ICMPv6 `echo's. - * Copyright (C) 2006-2010 Florian octo Forster + * Copyright (C) 2006-2010 Florian octo Forster * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -89,6 +89,11 @@ # define _POSIX_SAVED_IDS 0 #endif +/* Remove GNU specific __attribute__ settings when using another compiler */ +#if !__GNUC__ +# define __attribute__(x) /**/ +#endif + typedef struct ping_context { char host[NI_MAXHOST];