mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 17:01:16 +00:00
ICU-12166 Fix mac clang has feature problem for C files.
X-SVN-Rev: 38468
This commit is contained in:
parent
d845084966
commit
d743a8b947
1 changed files with 8 additions and 3 deletions
|
@ -533,13 +533,18 @@
|
|||
* http://clang.llvm.org/docs/AttributeReference.html#fallthrough-clang-fallthrough
|
||||
* @internal
|
||||
*/
|
||||
#if __has_cpp_attribute(clang::fallthrough) || \
|
||||
(__has_feature(cxx_attributes) && __has_warning("-Wimplicit-fallthrough"))
|
||||
# define U_FALLTHROUGH [[clang::fallthrough]]
|
||||
#ifdef __cplusplus
|
||||
# if __has_cpp_attribute(clang::fallthrough) || \
|
||||
(__has_feature(cxx_attributes) && __has_warning("-Wimplicit-fallthrough"))
|
||||
# define U_FALLTHROUGH [[clang::fallthrough]]
|
||||
# else
|
||||
# define U_FALLTHROUGH
|
||||
# endif
|
||||
#else
|
||||
# define U_FALLTHROUGH
|
||||
#endif
|
||||
|
||||
|
||||
/** @} */
|
||||
|
||||
/*===========================================================================*/
|
||||
|
|
Loading…
Add table
Reference in a new issue