aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/util.h b/lib/util.h
index 3f5bcb5f..6b5c89e6 100644
--- a/lib/util.h
+++ b/lib/util.h
@@ -31,6 +31,8 @@
#define FALLTHROUGH [[fallthrough]]
#elif __has_cpp_attribute(clang::fallthrough)
#define FALLTHROUGH [[clang::fallthrough]]
+#elif __has_cpp_attribute(gnu::fallthrough)
+#define FALLTHROUGH [[gnu::fallthrough]]
#else
#define FALLTHROUGH // -fallthrough
#endif