summaryrefslogtreecommitdiff
path: root/config_host
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-09-11 17:20:31 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-09-11 22:39:16 +0200
commit2d6df9bc36b81ab63bb5b7fe2648f156d3ed74ae (patch)
tree17f5880064e0efa878ac015c795d96306b63fa36 /config_host
parent50921d122399d669a2c401b8d26d90a0c7e14d14 (diff)
Use [[fallthrough]] also with MSVC
Change-Id: I840de9460c164b86dcbd96b4c0f382e1a1b609a2 Reviewed-on: https://gerrit.libreoffice.org/60330 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'config_host')
-rw-r--r--config_host/config_global.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/config_host/config_global.h.in b/config_host/config_global.h.in
index 7913460d6bf8..1c9e610f9167 100644
--- a/config_host/config_global.h.in
+++ b/config_host/config_global.h.in
@@ -23,6 +23,9 @@ Any change in this header will cause a rebuild of almost everything.
/* Compiler supports __attribute__((warn_unused)). */
#define HAVE_GCC_ATTRIBUTE_WARN_UNUSED 0
+/* [[fallthrough]] (C++17), __has_cpp_attribute(fallthrough) (C++2a): */
+#define HAVE_CPP_ATTRIBUTE_FALLTHROUGH 0
+
/* [[nodiscard]] (C++17), __has_cpp_attribute(nodiscard) (C++2a): */
#define HAVE_CPP_ATTRIBUTE_NODISCARD 0