aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin D. Howard <gavin@schedmd.com>2019-07-29 11:51:49 -0600
committerJustin M. Keyes <justinkz@gmail.com>2019-07-29 19:51:49 +0200
commit696334181fe9ea0128aff5745f64947efc088095 (patch)
tree30ab1e6060700ec8c5ea4cd77acc29631c5efb8b
parent3cf4b0d5e577f147f25c8417e097374c7ab88618 (diff)
downloadrneovim-696334181fe9ea0128aff5745f64947efc088095.tar.gz
rneovim-696334181fe9ea0128aff5745f64947efc088095.tar.bz2
rneovim-696334181fe9ea0128aff5745f64947efc088095.zip
build/macOS: enable fallthrough attribute #10653
-rw-r--r--src/nvim/macros.h3
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