diff options
author | Yann Collet <cyan@fb.com> | 2016-11-19 01:54:26 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2016-11-19 01:56:56 (GMT) |
commit | 19df3029e234e4c48c31377c9ef5f7c940da5106 (patch) | |
tree | 3ee2bd09200f75f321b98a2ddc60f1aaa2343347 /lib/lz4.h | |
parent | 519932afaf5a1d85e5d39de4acebc0a6bc07b9e3 (diff) | |
download | lz4-19df3029e234e4c48c31377c9ef5f7c940da5106.zip lz4-19df3029e234e4c48c31377c9ef5f7c940da5106.tar.gz lz4-19df3029e234e4c48c31377c9ef5f7c940da5106.tar.bz2 |
fixed #272 (compilation fails on gcc 4.4), reported by @totaam
Diffstat (limited to 'lib/lz4.h')
-rw-r--r-- | lib/lz4.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -412,9 +412,10 @@ union LZ4_streamDecode_u { #ifdef LZ4_DISABLE_DEPRECATE_WARNINGS # define LZ4_DEPRECATED(message) /* disable deprecation warnings */ #else -# if (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__) +# define LZ4_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__) +# if (LZ4_GCC_VERSION >= 405) || defined(__clang__) # define LZ4_DEPRECATED(message) __attribute__((deprecated(message))) -# elif defined(__GNUC__) && (__GNUC__ >= 3) +# elif (LZ4_GCC_VERSION >= 301) # define LZ4_DEPRECATED(message) __attribute__((deprecated)) # elif defined(_MSC_VER) # define LZ4_DEPRECATED(message) __declspec(deprecated(message)) |