minor : lz4frame include stdlib only if needed
authorYann Collet <cyan@fb.com>
Tue, 10 Nov 2020 05:23:56 +0000 (21:23 -0800)
committerYann Collet <cyan@fb.com>
Tue, 10 Nov 2020 05:23:56 +0000 (21:23 -0800)
lib/lz4frame.c

index e02b76cb96ecb237570fc005ec260d978343f277..ec02c92f72690a78821257b5657801fd8f25f458 100644 (file)
@@ -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)