summaryrefslogtreecommitdiffstats
path: root/avahi-common
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-11-06 15:00:43 +0000
committerLennart Poettering <lennart@poettering.net>2005-11-06 15:00:43 +0000
commit6f37f0e1126ad3776b80dbd64701f38a58738921 (patch)
tree43d640abb3bde62d7e664b305a1ac069dc8e2325 /avahi-common
parentfbce111b069aa1e4c701ed37ee1d9f6d6cefaac5 (diff)
add new client state AVAHI_CLIENT_FAILURE
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@931 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-common')
-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