mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
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:
parent
3ac0a936c8
commit
4966b0922d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue