compat.h: Only use C++ attribute versions of fallthrough if C++11 or greater.

git-svn-id: https://svn.eduke32.com/eduke32@6471 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2017-10-09 07:37:11 +00:00
parent 3ac0a936c8
commit 4966b0922d

View file

@ -234,7 +234,7 @@
# define CONSTEXPR_CXX14
#endif
#ifdef __cplusplus
#if CXXSTD >= 2011
# if __has_cpp_attribute(fallthrough)
# define fallthrough__ [[fallthrough]]
# elif __has_cpp_attribute(clang::fallthrough)