diff options
author | Yann Collet <cyan@fb.com> | 2016-11-12 16:48:42 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2016-11-12 16:48:42 (GMT) |
commit | 3580d9698098e8ad2ef757d1c3673aceca38c576 (patch) | |
tree | 343ce78efc05511fcf83698e860937796b918788 /lib/lz4.c | |
parent | 874f3e095b1d64ab3545a3f2a3f7403a44ebb3bb (diff) | |
download | lz4-3580d9698098e8ad2ef757d1c3673aceca38c576.zip lz4-3580d9698098e8ad2ef757d1c3673aceca38c576.tar.gz lz4-3580d9698098e8ad2ef757d1c3673aceca38c576.tar.bz2 |
enabled deprecation warnings on remaining obsolete functions
Diffstat (limited to 'lib/lz4.c')
-rw-r--r-- | lib/lz4.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -41,7 +41,9 @@ * Select how default compression functions will allocate memory for their hash table, * in memory stack (0:default, fastest), or in memory heap (1:requires malloc()). */ -#define HEAPMODE 0 +#ifndef HEAPMODE +# define HEAPMODE 0 +#endif /* * ACCELERATION_DEFAULT : @@ -109,8 +111,7 @@ # endif #endif /* _MSC_VER */ -/* LZ4_GCC_VERSION is defined into lz4.h */ -#if (LZ4_GCC_VERSION >= 302) || (__INTEL_COMPILER >= 800) || defined(__clang__) +#if (defined(__GNU_C__) && (__GNU_C__ >= 3)) || (defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 800)) || defined(__clang__) # define expect(expr,value) (__builtin_expect ((expr),(value)) ) #else # define expect(expr,value) (expr) |