From 7b6ba76954f88558a638f174c68a87207fe4788d Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sun, 13 Jan 2019 11:49:21 +0900 Subject: util.h: check for fallthrough attribute instead of C++ version --- lib/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/util.h') 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 #include -#if __cplusplus >= 201703L +#if __has_cpp_attribute(fallthrough) #define FALLTHROUGH [[fallthrough]] #elif __has_cpp_attribute(clang::fallthrough) #define FALLTHROUGH [[clang::fallthrough]] -- cgit v1.2.3