aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-12-06 19:12:28 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-12-08 16:25:22 +0900
commit1de8d511251163ed35e0647c70c3e94e071b2fe0 (patch)
treed43902b2f57c38ffc8d072531f894b23650b958c
parentbe4a16cd4188ebeeba60768deadd88de5cc5be7b (diff)
downloadlibquotient-1de8d511251163ed35e0647c70c3e94e071b2fe0.tar.gz
libquotient-1de8d511251163ed35e0647c70c3e94e071b2fe0.zip
Special-case FALLTHROUGH for Clang
-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