compress: Drop lz4 includes from compress.h

The lz4 functions are only used in test-compress.c, so let's just
put the declarations and includes in there instead of having everyone
including compress.h pull in the lz4 headers.
This commit is contained in:
Daan De Meyer
2025-05-09 11:33:33 +02:00
parent 7227d5bfff
commit 2782dae50f
3 changed files with 9 additions and 11 deletions
+5
View File
@@ -229,6 +229,11 @@ _unused_ static void test_compress_stream(const char *compression,
#endif
#if HAVE_LZ4
extern DLSYM_PROTOTYPE(LZ4_compress_default);
extern DLSYM_PROTOTYPE(LZ4_decompress_safe);
extern DLSYM_PROTOTYPE(LZ4_decompress_safe_partial);
extern DLSYM_PROTOTYPE(LZ4_versionNumber);
static void test_lz4_decompress_partial(void) {
char buf[20000], buf2[100];
size_t buf_size = sizeof(buf), compressed;