From 1f1621d9d45b11aa130b85084fb4789e07747e08 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 17 Nov 2010 10:02:37 +0100 Subject: [PATCH] src/oping.c: Remove __attribute__ flags when using non-GNU compiler. --- src/oping.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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]; -- 2.11.0