From 366ccd79004893257e17cbaf162c5cd25de2495d Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sat, 22 Jul 2017 04:00:13 +0000 Subject: [PATCH] Add a fallthrough__ entry for VS. git-svn-id: https://svn.eduke32.com/eduke32@6373 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/include/compat.h | 2 ++ 1 file changed, 2 insertions(+) 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