diff options
author | Gavin D. Howard <gavin@schedmd.com> | 2019-07-29 11:51:49 -0600 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-07-29 19:51:49 +0200 |
commit | 696334181fe9ea0128aff5745f64947efc088095 (patch) | |
tree | 30ab1e6060700ec8c5ea4cd77acc29631c5efb8b | |
parent | 3cf4b0d5e577f147f25c8417e097374c7ab88618 (diff) | |
download | rneovim-696334181fe9ea0128aff5745f64947efc088095.tar.gz rneovim-696334181fe9ea0128aff5745f64947efc088095.tar.bz2 rneovim-696334181fe9ea0128aff5745f64947efc088095.zip |
build/macOS: enable fallthrough attribute #10653
-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 |