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.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/avahi-common/gccmacro.h b/avahi-common/gccmacro.h
index 2e427b7..78a09a7 100644
--- a/avahi-common/gccmacro.h
+++ b/avahi-common/gccmacro.h
@@ -28,13 +28,9 @@
AVAHI_C_DECL_BEGIN
-#ifdef __GNUC__
-#if __GNUC__ >= 4
+#if defined(__GNUC__) && (__GNUC__ >= 4)
#define AVAHI_GCC_SENTINEL __attribute__ ((sentinel))
-#endif
-#endif
-
-#ifndef AVAHI_GCC_SENTINEL
+#else
/** Macro for usage of GCC's sentinel compilation warnings */
#define AVAHI_GCC_SENTINEL
#endif