diff options
-rw-r--r-- | src/nvim/macros.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/macros.h b/src/nvim/macros.h index c758e000a9..f2ba91335d 100644 --- a/src/nvim/macros.h +++ b/src/nvim/macros.h @@ -163,7 +163,8 @@ # define NVIM_HAS_ATTRIBUTE __has_attribute #endif -#if NVIM_HAS_ATTRIBUTE(fallthrough) +#if NVIM_HAS_ATTRIBUTE(fallthrough) \ + && (!defined(__apple_build_version__) || __apple_build_version__ >= 7000000) # define FALLTHROUGH __attribute__((fallthrough)) #else # define FALLTHROUGH |