mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
Update fallthrough__ definitions.
git-svn-id: https://svn.eduke32.com/eduke32@6447 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
01c073f18a
commit
c07e705c48
1 changed files with 17 additions and 10 deletions
|
@ -226,16 +226,23 @@
|
||||||
# define CONSTEXPR_CXX14
|
# define CONSTEXPR_CXX14
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __has_cpp_attribute(fallthrough)
|
#ifdef __cplusplus
|
||||||
# define fallthrough__ [[fallthrough]]
|
# if __has_cpp_attribute(fallthrough)
|
||||||
#elif __has_cpp_attribute(clang::fallthrough)
|
# define fallthrough__ [[fallthrough]]
|
||||||
# define fallthrough__ [[clang::fallthrough]]
|
# elif __has_cpp_attribute(clang::fallthrough)
|
||||||
#elif __has_cpp_attribute(gnu::fallthrough)
|
# define fallthrough__ [[clang::fallthrough]]
|
||||||
# define fallthrough__ [[gnu::fallthrough]]
|
# elif __has_cpp_attribute(gnu::fallthrough)
|
||||||
#elif defined _MSC_VER
|
# define fallthrough__ [[gnu::fallthrough]]
|
||||||
# define fallthrough__ __fallthrough
|
# endif
|
||||||
#else
|
#endif
|
||||||
# define fallthrough__
|
#ifndef fallthrough__
|
||||||
|
# if !defined __clang__ && EDUKE32_GCC_PREREQ(7,0)
|
||||||
|
# define fallthrough__ __attribute__((fallthrough))
|
||||||
|
# elif defined _MSC_VER
|
||||||
|
# define fallthrough__ __fallthrough
|
||||||
|
# else
|
||||||
|
# define fallthrough__
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue