diff options
author | Bing Xu <bingxu@fb.com> | 2018-11-26 19:30:15 (GMT) |
---|---|---|
committer | Bing Xu <bingxu@fb.com> | 2018-11-26 19:30:15 (GMT) |
commit | b192c86ba43b3b762e705f4cdd509da3250e1c0c (patch) | |
tree | 94670300543846b7c4d655e92c14df055bd2b52a /lib/lz4frame.c | |
parent | b4efd20ac84a992d7f599d693e851c821e9b6800 (diff) | |
download | lz4-b192c86ba43b3b762e705f4cdd509da3250e1c0c.zip lz4-b192c86ba43b3b762e705f4cdd509da3250e1c0c.tar.gz lz4-b192c86ba43b3b762e705f4cdd509da3250e1c0c.tar.bz2 |
[amalgamation] lz4frame.c
Diffstat (limited to 'lib/lz4frame.c')
-rw-r--r-- | lib/lz4frame.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c index 357f962..705832d 100644 --- a/lib/lz4frame.c +++ b/lib/lz4frame.c @@ -64,10 +64,15 @@ You can contact the author at : **************************************/ #include <stdlib.h> /* malloc, calloc, free */ #define ALLOC(s) malloc(s) +#ifndef LZ4_SRC_INCLUDED #define ALLOC_AND_ZERO(s) calloc(1,(s)) +#endif #define FREEMEM(p) free(p) #include <string.h> /* memset, memcpy, memmove */ +#ifndef LZ4_SRC_INCLUDED #define MEM_INIT memset +#endif + /*-************************************ @@ -180,9 +185,11 @@ static void LZ4F_writeLE64 (void* dst, U64 value64) /*-************************************ * Constants **************************************/ +#ifndef LZ4_SRC_INCLUDED #define KB *(1<<10) #define MB *(1<<20) #define GB *(1<<30) +#endif #define _1BIT 0x01 #define _2BITS 0x03 |