summaryrefslogtreecommitdiffstats
path: root/lib/lz4.c
diff options
context:
space:
mode:
authorTakayuki Matsuoka <t-mat@users.noreply.github.com>2022-08-07 10:06:37 (GMT)
committerTakayuki Matsuoka <t-mat@users.noreply.github.com>2022-08-07 10:06:37 (GMT)
commit721e76d1af1d248d0e6fefb2a090cd4b1c4a08f2 (patch)
treea9d54c2b8b30d491c7d821ab5aa297fa6e81688c /lib/lz4.c
parentca26930a91e5b1d47d725b1043e1f5282fd18aaf (diff)
downloadlz4-721e76d1af1d248d0e6fefb2a090cd4b1c4a08f2.zip
lz4-721e76d1af1d248d0e6fefb2a090cd4b1c4a08f2.tar.gz
lz4-721e76d1af1d248d0e6fefb2a090cd4b1c4a08f2.tar.bz2
Add LZ4_FREESTANDING
Diffstat (limited to 'lib/lz4.c')
-rw-r--r--lib/lz4.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/lz4.c b/lib/lz4.c
index 5fae002..ad12281 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -209,7 +209,9 @@ void LZ4_free(void* p);
# define FREEMEM(p) free(p)
#endif
-#include <string.h> /* memset, memcpy */
+#if ! LZ4_FREESTANDING
+# include <string.h> /* memset, memcpy */
+#endif
#if !defined(LZ4_memset)
# define LZ4_memset(p,v,s) memset((p),(v),(s))
#endif