diff --git a/source/build/include/compat.h b/source/build/include/compat.h index 157bf2994..5a21b3078 100644 --- a/source/build/include/compat.h +++ b/source/build/include/compat.h @@ -232,6 +232,8 @@ # define fallthrough__ [[clang::fallthrough]] #elif __has_cpp_attribute(gnu::fallthrough) # define fallthrough__ [[gnu::fallthrough]] +#elif defined _MSC_VER +# define fallthrough__ __fallthrough #else # define fallthrough__ #endif