aboutsummaryrefslogtreecommitdiff
path: root/lib/util.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-01-13 11:49:21 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-01-13 17:12:46 +0900
commit007bd03300666ccab6d7887f5987df2a0085bab1 (patch)
treeb46f646dd0051f73f195c483ca938d470eadecc9 /lib/util.h
parenta5e804c88d8c1940e920f91eea7a8be466eef53e (diff)
downloadlibquotient-007bd03300666ccab6d7887f5987df2a0085bab1.tar.gz
libquotient-007bd03300666ccab6d7887f5987df2a0085bab1.zip
util.h: check for fallthrough attribute instead of C++ version
Diffstat (limited to 'lib/util.h')
-rw-r--r--lib/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.h b/lib/util.h
index 9c9a37ba..336248d3 100644
--- a/lib/util.h
+++ b/lib/util.h
@@ -27,7 +27,7 @@
#include <functional>
#include <memory>
-#if __cplusplus >= 201703L
+#if __has_cpp_attribute(fallthrough)
#define FALLTHROUGH [[fallthrough]]
#elif __has_cpp_attribute(clang::fallthrough)
#define FALLTHROUGH [[clang::fallthrough]]