mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +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
|
||||||
|
# if __has_cpp_attribute(fallthrough)
|
||||||
# define fallthrough__ [[fallthrough]]
|
# define fallthrough__ [[fallthrough]]
|
||||||
#elif __has_cpp_attribute(clang::fallthrough)
|
# elif __has_cpp_attribute(clang::fallthrough)
|
||||||
# define fallthrough__ [[clang::fallthrough]]
|
# define fallthrough__ [[clang::fallthrough]]
|
||||||
#elif __has_cpp_attribute(gnu::fallthrough)
|
# elif __has_cpp_attribute(gnu::fallthrough)
|
||||||
# define fallthrough__ [[gnu::fallthrough]]
|
# define fallthrough__ [[gnu::fallthrough]]
|
||||||
#elif defined _MSC_VER
|
# endif
|
||||||
|
#endif
|
||||||
|
#ifndef fallthrough__
|
||||||
|
# if !defined __clang__ && EDUKE32_GCC_PREREQ(7,0)
|
||||||
|
# define fallthrough__ __attribute__((fallthrough))
|
||||||
|
# elif defined _MSC_VER
|
||||||
# define fallthrough__ __fallthrough
|
# define fallthrough__ __fallthrough
|
||||||
#else
|
# else
|
||||||
# define fallthrough__
|
# define fallthrough__
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue