projects
/
platform
/
upstream
/
lz4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c4af01
)
minor : lz4frame include stdlib only if needed
author
Yann Collet
<cyan@fb.com>
Tue, 10 Nov 2020 05:23:56 +0000
(21:23 -0800)
committer
Yann Collet
<cyan@fb.com>
Tue, 10 Nov 2020 05:23:56 +0000
(21:23 -0800)
lib/lz4frame.c
patch
|
blob
|
history
diff --git
a/lib/lz4frame.c
b/lib/lz4frame.c
index e02b76cb96ecb237570fc005ec260d978343f277..ec02c92f72690a78821257b5657801fd8f25f458 100644
(file)
--- 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)