summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/libjpeg/src/jconfigint.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/libjpeg/src/jconfigint.h.in')
-rw-r--r--src/3rdparty/libjpeg/src/jconfigint.h.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/3rdparty/libjpeg/src/jconfigint.h.in b/src/3rdparty/libjpeg/src/jconfigint.h.in
index 68cbc2a505..d087d7b553 100644
--- a/src/3rdparty/libjpeg/src/jconfigint.h.in
+++ b/src/3rdparty/libjpeg/src/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