summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2020-11-09 21:23:56 -0800
committerYann Collet <cyan@fb.com>2020-11-09 21:23:56 -0800
commit86f5e9d0f4a561dfefb3a773ee4198236bf6e202 (patch)
tree8d4d137341349678c52dbbe8fc54e2349e177bdc
parent2c4af01e199d605ef6b9ba6be85fe8edcb23aa8a (diff)
downloadlz4-86f5e9d0f4a561dfefb3a773ee4198236bf6e202.tar.gz
lz4-86f5e9d0f4a561dfefb3a773ee4198236bf6e202.tar.bz2
lz4-86f5e9d0f4a561dfefb3a773ee4198236bf6e202.zip
minor : lz4frame include stdlib only if needed
-rw-r--r--lib/lz4frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c
index e02b76c..ec02c92 100644
--- a/lib/lz4frame.c
+++ b/lib/lz4frame.c
@@ -71,8 +71,8 @@
* towards another library or solution of their choice
* by modifying below section.
*/
-#include <stdlib.h> /* malloc, calloc, free */
#ifndef LZ4_SRC_INCLUDED /* avoid redefinition when sources are coalesced */
+# include <stdlib.h> /* malloc, calloc, free */
# define ALLOC(s) malloc(s)
# define ALLOC_AND_ZERO(s) calloc(1,(s))
# define FREEMEM(p) free(p)