aboutsummaryrefslogtreecommitdiff
path: root/jconfigint.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'jconfigint.h.in')
-rw-r--r--jconfigint.h.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/jconfigint.h.in b/jconfigint.h.in
index 68cbc2a5..d087d7b5 100644
--- a/jconfigint.h.in
+++ b/jconfigint.h.in
@@ -32,3 +32,13 @@
#define HAVE_BITSCANFORWARD
#endif
#endif
+
+#if defined(__has_attribute)
+#if __has_attribute(fallthrough)
+#define FALLTHROUGH __attribute__((fallthrough));
+#else
+#define FALLTHROUGH
+#endif
+#else
+#define FALLTHROUGH
+#endif