summaryrefslogtreecommitdiffstats
path: root/lib/lz4frame.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lz4frame.h')
-rw-r--r--lib/lz4frame.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lz4frame.h b/lib/lz4frame.h
index 08d1895..63d61ad 100644
--- a/lib/lz4frame.h
+++ b/lib/lz4frame.h
@@ -67,7 +67,7 @@ extern "C" {
#if defined(_MSC_VER)
# define LZ4F_DEPRECATE(x) __declspec(deprecated) x
-#elif defined(__GNUC__)
+#elif defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 6))
# define LZ4F_DEPRECATE(x) x __attribute__((deprecated))
#else
# define LZ4F_DEPRECATE(x) x /* no deprecation warning for this compiler */