summaryrefslogtreecommitdiffstats
path: root/lib/lz4.c
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2016-11-12 16:48:42 (GMT)
committerYann Collet <cyan@fb.com>2016-11-12 16:48:42 (GMT)
commit3580d9698098e8ad2ef757d1c3673aceca38c576 (patch)
tree343ce78efc05511fcf83698e860937796b918788 /lib/lz4.c
parent874f3e095b1d64ab3545a3f2a3f7403a44ebb3bb (diff)
downloadlz4-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.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/lz4.c b/lib/lz4.c
index 04183e6..e59b49c 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -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)