]> wimlib.net Git - wimlib/commitdiff
export compression functions when using special define
authorEric Biggers <ebiggers3@gmail.com>
Wed, 27 Mar 2013 04:25:41 +0000 (23:25 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Wed, 27 Mar 2013 04:25:41 +0000 (23:25 -0500)
src/lzx-compress.c
src/xpress-compress.c

index c829a4272d5b2011ba619e5dc06f30c6e93908e0..eb84d0cea108a69dfc16c1f0558d93e49b8724a2 100644 (file)
@@ -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.
  */
  * 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)
 unsigned
 lzx_compress(const void *__uncompressed_data, unsigned uncompressed_len,
             void *compressed_data)
index 548c32cbc8a9cd5d1f56e7d011668eb5a65d3858..466dd7553811c73b7efe028a56e81b3d24ae78d1 100644 (file)
@@ -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.
  */
  * 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)
 unsigned
 xpress_compress(const void *__uncompressed_data, unsigned uncompressed_len,
                void *__compressed_data)