summaryrefslogtreecommitdiffstats
path: root/lz4.c
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2014-06-11 20:40:16 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2014-06-11 20:40:16 (GMT)
commit0c62103105143eaaf0fa5caae09e65318063a417 (patch)
tree7908faf62b5517efa6c2860c2c9d98a10f0f342a /lz4.c
parent3b92842904f656d4991179e58fd192b0457fe981 (diff)
downloadlz4-0c62103105143eaaf0fa5caae09e65318063a417.zip
lz4-0c62103105143eaaf0fa5caae09e65318063a417.tar.gz
lz4-0c62103105143eaaf0fa5caae09e65318063a417.tar.bz2
restored LZ4 HC streaming mode
Diffstat (limited to 'lz4.c')
-rwxr-xr-xlz4.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lz4.c b/lz4.c
index d2906aa..e1bcb25 100755
--- a/lz4.c
+++ b/lz4.c
@@ -47,8 +47,9 @@
**************************************/
/* 32 or 64 bits ? */
#if (defined(__x86_64__) || defined(_M_X64) || defined(_WIN64) \
- || defined(__powerpc64__) || defined(__ppc64__) || defined(__PPC64__) \
- || defined(__64BIT__) || defined(_LP64) || defined(__LP64__) \
+ || defined(__powerpc64__) || defined(__powerpc64le__) \
+ || defined(__ppc64__) || defined(__ppc64le__) \
+ || defined(__PPC64__) || defined(__PPC64LE__) \
|| defined(__ia64) || defined(__itanium__) || defined(_M_IA64) ) /* Detects 64 bits mode */
# define LZ4_ARCH64 1
#else
@@ -59,6 +60,7 @@
* Little Endian or Big Endian ?
* Overwrite the #define below if you know your architecture endianess
*/
+#include <stdlib.h> /* Apparently required to detect endianess */
#if defined (__GLIBC__)
# include <endian.h>
# if (__BYTE_ORDER == __BIG_ENDIAN)