aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2007-12-09 17:14:07 +0200
committerLasse Collin <lasse.collin@tukaani.org>2007-12-09 17:14:07 +0200
commit329c272d501e88793dda5540358d55c12428d194 (patch)
treed70445dfb14b66fb06043ebdc1822aa25df18585 /src/liblzma
parent* tests/test_block_header.c (test3): Remove duplicate initializer. (diff)
downloadxz-329c272d501e88793dda5540358d55c12428d194.tar.xz
Added missing LZMA_API to the C versions of the CRC functions.
The x86 assembler versions were already OK.
Diffstat (limited to 'src/liblzma')
-rw-r--r--src/liblzma/check/crc32.c2
-rw-r--r--src/liblzma/check/crc64.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/liblzma/check/crc32.c b/src/liblzma/check/crc32.c
index 091e1422..698cf768 100644
--- a/src/liblzma/check/crc32.c
+++ b/src/liblzma/check/crc32.c
@@ -18,7 +18,7 @@
// If you make any changes, do some bench marking! Seemingly unrelated
// changes can very easily ruin the performance (and very probably is
// very compiler dependent).
-extern uint32_t
+extern LZMA_API uint32_t
lzma_crc32(const uint8_t *buf, size_t size, uint32_t crc)
{
crc = ~crc;
diff --git a/src/liblzma/check/crc64.c b/src/liblzma/check/crc64.c
index e31bc7ff..00fbfd53 100644
--- a/src/liblzma/check/crc64.c
+++ b/src/liblzma/check/crc64.c
@@ -23,7 +23,7 @@
// See comments in crc32.c.
-extern uint64_t
+extern LZMA_API uint64_t
lzma_crc64(const uint8_t *buf, size_t size, uint64_t crc)
{
crc = ~crc;