diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2014-06-11 20:40:16 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2014-06-11 20:40:16 (GMT) |
commit | 0c62103105143eaaf0fa5caae09e65318063a417 (patch) | |
tree | 7908faf62b5517efa6c2860c2c9d98a10f0f342a /lz4.c | |
parent | 3b92842904f656d4991179e58fd192b0457fe981 (diff) | |
download | lz4-0c62103105143eaaf0fa5caae09e65318063a417.zip lz4-0c62103105143eaaf0fa5caae09e65318063a417.tar.gz lz4-0c62103105143eaaf0fa5caae09e65318063a417.tar.bz2 |
restored LZ4 HC streaming mode
Diffstat (limited to 'lz4.c')
-rwxr-xr-x | lz4.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) |