aboutsummaryrefslogtreecommitdiff
path: root/contrib/bc/include/status.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bc/include/status.h')
-rw-r--r--contrib/bc/include/status.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/bc/include/status.h b/contrib/bc/include/status.h
index 3fa844485690..cf41a3ce4670 100644
--- a/contrib/bc/include/status.h
+++ b/contrib/bc/include/status.h
@@ -176,11 +176,15 @@ typedef enum BcErr {
#endif // __STDC_VERSION__
#if defined(__clang__) || defined(__GNUC__)
-#if defined(__has_attribute) && __has_attribute(fallthrough)
+#if defined(__has_attribute)
+#if __has_attribute(fallthrough)
#define BC_FALLTHROUGH __attribute__((fallthrough));
-#else // defined(__has_attribute) && __has_attribute(fallthrough)
+#else // __has_attribute(fallthrough)
#define BC_FALLTHROUGH
-#endif // defined(__has_attribute) && __has_attribute(fallthrough)
+#endif // __has_attribute(fallthrough)
+#else // defined(__has_attribute)
+#define BC_FALLTHROUGH
+#endif // defined(__has_attribute)
#else // defined(__clang__) || defined(__GNUC__)
#define BC_FALLTHROUGH
#endif // defined(__clang__) || defined(__GNUC__)