From fe367caf27dd022258218a768da1ae2ddd246203 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 15 Aug 2005 14:25:32 +0000 Subject: gcc 2.95 compatibility git-svn-id: file:///home/lennart/svn/public/avahi/trunk@332 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-common/gccmacro.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'avahi-common/gccmacro.h') diff --git a/avahi-common/gccmacro.h b/avahi-common/gccmacro.h index 2ac6c1d..24f206f 100644 --- a/avahi-common/gccmacro.h +++ b/avahi-common/gccmacro.h @@ -25,8 +25,12 @@ /** \file gccmacro.h Defines some macros for GCC extensions */ #ifdef __GNUC__ +#if __GNUC__ >= 4 #define AVAHI_GCC_SENTINEL __attribute__ ((sentinel)) -#else +#endif +#endif + +#ifndef AVAHI_GCC_SENTINEL /** Macro for usage of GCC's sentinel compilation warnings */ #define AVAHI_GCC_SENTINEL #endif -- cgit