build/macOS: enable fallthrough attribute #10653

This commit is contained in:
Gavin D. Howard
2019-07-29 11:51:49 -06:00
committed by Justin M. Keyes
parent 3cf4b0d5e5
commit 696334181f

View File

@@ -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