]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
get_crc_table only with ZLIB_VERNUM >= 0x1270
authorPrzemyslaw Skibinski <inikep@gmail.com>
Wed, 18 Jan 2017 09:39:39 +0000 (10:39 +0100)
committerPrzemyslaw Skibinski <inikep@gmail.com>
Wed, 18 Jan 2017 09:39:39 +0000 (10:39 +0100)
zlibWrapper/zstd_zlibwrapper.c

index d5666b7031190ca72c13b5f0c26281789239ff6c..2b55bfabc9c658c820d59d5f02dfe9596e867343 100644 (file)
@@ -1043,7 +1043,9 @@ ZEXTERN uLong ZEXPORT z_crc32   OF((uLong crc, const Bytef *buf, uInt len))
     return crc32(crc, buf, len);
 }
 
+#if ZLIB_VERNUM >= 0x1270
 ZEXTERN const z_crc_t FAR * ZEXPORT z_get_crc_table    OF((void))
 {
     return get_crc_table();
 }
+#endif