aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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]]