From 4c7c5fee0bde9efa0529e0eb22cd8f6a36a6eb6b Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Tue, 26 Mar 2013 23:25:41 -0500 Subject: [PATCH] export compression functions when using special define --- src/lzx-compress.c | 3 +++ src/xpress-compress.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/lzx-compress.c b/src/lzx-compress.c index c829a427..eb84d0ce 100644 --- a/src/lzx-compress.c +++ b/src/lzx-compress.c @@ -644,6 +644,9 @@ static const struct lz_params lzx_lz_params = { * Please see the documentation for the 'compress_func_t' type in write.c for * the exact behavior of this function and how to call it. */ +#ifdef EXPORT_COMPRESSION_FUNCTIONS +WIMLIBAPI +#endif unsigned lzx_compress(const void *__uncompressed_data, unsigned uncompressed_len, void *compressed_data) diff --git a/src/xpress-compress.c b/src/xpress-compress.c index 548c32cb..466dd755 100644 --- a/src/xpress-compress.c +++ b/src/xpress-compress.c @@ -145,6 +145,9 @@ static const struct lz_params xpress_lz_params = { * Please see the documentation for the 'compress_func_t' type in write.c for * the exact behavior of this function and how to call it. */ +#ifdef EXPORT_COMPRESSION_FUNCTIONS +WIMLIBAPI +#endif unsigned xpress_compress(const void *__uncompressed_data, unsigned uncompressed_len, void *__compressed_data) -- 2.43.0