summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--agent/agent-priv.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/agent/agent-priv.h b/agent/agent-priv.h
index 91f73a3..ee1000e 100644
--- a/agent/agent-priv.h
+++ b/agent/agent-priv.h
@@ -328,4 +328,12 @@ void nice_debug (const char *fmt, ...) G_GNUC_PRINTF (1, 2);
void nice_debug_verbose (const char *fmt, ...) G_GNUC_PRINTF (1, 2);
#endif
+#if !GLIB_CHECK_VERSION(2, 59, 0)
+#if __GNUC__ > 6
+#define G_GNUC_FALLTHROUGH __attribute__((fallthrough))
+#else
+#define G_GNUC_FALLTHROUGH
+#endif /* __GNUC__ */
+#endif
+
#endif /*_NICE_AGENT_PRIV_H */