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 14:01:43 +0900
commit7b6ba76954f88558a638f174c68a87207fe4788d (patch)
treef7fbd2864a8beac1a349e0cd0e36f726bdf8d9b3 /lib/util.h
parentde292f1537863846c9bb43de65a3c1ef4f37d18d (diff)
downloadlibquotient-7b6ba76954f88558a638f174c68a87207fe4788d.tar.gz
libquotient-7b6ba76954f88558a638f174c68a87207fe4788d.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]]