mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 18:36:30 +00:00
build/macOS: enable fallthrough attribute #10653
This commit is contained in:

committed by
Justin M. Keyes

parent
3cf4b0d5e5
commit
696334181f
@@ -163,7 +163,8 @@
|
|||||||
# define NVIM_HAS_ATTRIBUTE __has_attribute
|
# define NVIM_HAS_ATTRIBUTE __has_attribute
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if NVIM_HAS_ATTRIBUTE(fallthrough)
|
#if NVIM_HAS_ATTRIBUTE(fallthrough) \
|
||||||
|
&& (!defined(__apple_build_version__) || __apple_build_version__ >= 7000000)
|
||||||
# define FALLTHROUGH __attribute__((fallthrough))
|
# define FALLTHROUGH __attribute__((fallthrough))
|
||||||
#else
|
#else
|
||||||
# define FALLTHROUGH
|
# define FALLTHROUGH
|
||||||
|
Reference in New Issue
Block a user