diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2009-02-02 20:14:03 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2009-02-02 20:14:03 +0200 |
commit | 22a0c6dd940b78cdac2f4a4b4b0e7cc0ac15021f (patch) | |
tree | 0e99fcc4cf336731fb52e3b028a0ecccbbbe1673 /src/liblzma/api/lzma/check.h | |
parent | Fix a bug in lzma_block_buffer_decode(), although this (diff) | |
download | xz-22a0c6dd940b78cdac2f4a4b4b0e7cc0ac15021f.tar.xz |
Modify LZMA_API macro so that it works on Windows with
other compilers than MinGW. This may hurt readability
of the API headers slightly, but I don't know any
better way to do this.
Diffstat (limited to 'src/liblzma/api/lzma/check.h')
-rw-r--r-- | src/liblzma/api/lzma/check.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/liblzma/api/lzma/check.h b/src/liblzma/api/lzma/check.h index 13f17c46..4a09d98e 100644 --- a/src/liblzma/api/lzma/check.h +++ b/src/liblzma/api/lzma/check.h @@ -82,7 +82,7 @@ typedef enum { * You can assume that LZMA_CHECK_NONE and LZMA_CHECK_CRC32 are always * supported (even if liblzma is built with limited features). */ -extern LZMA_API lzma_bool lzma_check_is_supported(lzma_check check) +extern LZMA_API(lzma_bool) lzma_check_is_supported(lzma_check check) lzma_attr_const; @@ -96,7 +96,7 @@ extern LZMA_API lzma_bool lzma_check_is_supported(lzma_check check) * * If the argument is not in the range [0, 15], UINT32_MAX is returned. */ -extern LZMA_API uint32_t lzma_check_size(lzma_check check) lzma_attr_const; +extern LZMA_API(uint32_t) lzma_check_size(lzma_check check) lzma_attr_const; /** @@ -119,7 +119,7 @@ extern LZMA_API uint32_t lzma_check_size(lzma_check check) lzma_attr_const; * \return Updated CRC value, which can be passed to this function * again to continue CRC calculation. */ -extern LZMA_API uint32_t lzma_crc32( +extern LZMA_API(uint32_t) lzma_crc32( const uint8_t *buf, size_t size, uint32_t crc) lzma_attr_pure; @@ -131,7 +131,7 @@ extern LZMA_API uint32_t lzma_crc32( * * This function is used similarly to lzma_crc32(). See its documentation. */ -extern LZMA_API uint64_t lzma_crc64( +extern LZMA_API(uint64_t) lzma_crc64( const uint8_t *buf, size_t size, uint64_t crc) lzma_attr_pure; @@ -149,4 +149,4 @@ extern LZMA_API uint64_t lzma_crc64( * returned LZMA_NO_CHECK, LZMA_UNSUPPORTED_CHECK, or LZMA_GET_CHECK. * Calling this function in any other situation has undefined behavior. */ -extern LZMA_API lzma_check lzma_get_check(const lzma_stream *strm); +extern LZMA_API(lzma_check) lzma_get_check(const lzma_stream *strm); |