summaryrefslogtreecommitdiffstats
path: root/lib/lz4.h
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2016-11-12 21:30:02 (GMT)
committerYann Collet <cyan@fb.com>2016-11-12 21:30:02 (GMT)
commitbb97e8a6fdac3f3c3239411f7c6788dbbf1c5b33 (patch)
tree4d4614d4fe2912c7cdb6bbc03c11b8b103c634ce /lib/lz4.h
parentcb2230826bb2270fd27fdf9a6afb2d2df19078ce (diff)
downloadlz4-bb97e8a6fdac3f3c3239411f7c6788dbbf1c5b33.zip
lz4-bb97e8a6fdac3f3c3239411f7c6788dbbf1c5b33.tar.gz
lz4-bb97e8a6fdac3f3c3239411f7c6788dbbf1c5b33.tar.bz2
fixed __GNUC__ macro
Diffstat (limited to 'lib/lz4.h')
-rw-r--r--lib/lz4.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lz4.h b/lib/lz4.h
index cc304f2..17abd52 100644
--- a/lib/lz4.h
+++ b/lib/lz4.h
@@ -416,9 +416,9 @@ struct LZ4_streamDecode_s {
#ifdef LZ4_DISABLE_DEPRECATE_WARNINGS
# define LZ4_DEPRECATED(message) /* disable deprecation warnings */
#else
-# if (defined(__GNU_C__) && (__GNU_C__ >= 4)) || defined(__clang__)
+# if (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__)
# define LZ4_DEPRECATED(message) __attribute__((deprecated(message)))
-# elif defined(__GNU_C__) && (__GNU_C__ >= 3)
+# elif defined(__GNUC__) && (__GNUC__ >= 3)
# define LZ4_DEPRECATED(message) __attribute__((deprecated))
# elif defined(_MSC_VER)
# define LZ4_DEPRECATED(message) __declspec(deprecated(message))