aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/archive_platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/archive_platform.h')
-rw-r--r--libarchive/archive_platform.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libarchive/archive_platform.h b/libarchive/archive_platform.h
index 8bd54a6962d5..32b884c96ed3 100644
--- a/libarchive/archive_platform.h
+++ b/libarchive/archive_platform.h
@@ -191,4 +191,10 @@
#define ARCHIVE_ERRNO_MISC (-1)
#endif
+#if defined(__GNUC__) && (__GNUC__ >= 7)
+#define __LA_FALLTHROUGH __attribute__((fallthrough))
+#else
+#define __LA_FALLTHROUGH
+#endif
+
#endif /* !ARCHIVE_PLATFORM_H_INCLUDED */