aboutsummaryrefslogtreecommitdiff
path: root/include/status.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/status.h')
-rw-r--r--include/status.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/status.h b/include/status.h
index 762ff3e25c36..2807a28af4ef 100644
--- a/include/status.h
+++ b/include/status.h
@@ -166,7 +166,11 @@ typedef enum BcErr {
#endif // __STDC_VERSION__
#if defined(__clang__) || defined(__GNUC__)
+#if defined(__has_attribute) && __has_attribute(fallthrough)
#define BC_FALLTHROUGH __attribute__((fallthrough));
+#else // defined(__has_attribute) && __has_attribute(fallthrough)
+#define BC_FALLTHROUGH
+#endif // defined(__has_attribute) && __has_attribute(fallthrough)
#else // defined(__clang__) || defined(__GNUC__)
#define BC_FALLTHROUGH
#endif //defined(__clang__) || defined(__GNUC__)