summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/first.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/first.h b/src/first.h
index 2b0018aa..044d7e1f 100644
--- a/src/first.h
+++ b/src/first.h
@@ -111,5 +111,12 @@
#endif
#endif
+#if __has_attribute(fallthrough) \
+ || __GNUC_PREREQ(7,0)
+#define __attribute_fallthrough__ __attribute__((__fallthrough__));
+#else
+#define __attribute_fallthrough__
+#endif
+
#endif