summaryrefslogtreecommitdiffstats
path: root/avahi-common/gccmacro.h
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-common/gccmacro.h')
-rw-r--r--avahi-common/gccmacro.h6
1 files changed, 5 insertions, 1 deletions
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