aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/api/lzma/stream_flags.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-02-02 20:14:03 +0200
committerLasse Collin <lasse.collin@tukaani.org>2009-02-02 20:14:03 +0200
commit22a0c6dd940b78cdac2f4a4b4b0e7cc0ac15021f (patch)
tree0e99fcc4cf336731fb52e3b028a0ecccbbbe1673 /src/liblzma/api/lzma/stream_flags.h
parentFix a bug in lzma_block_buffer_decode(), although this (diff)
downloadxz-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 '')
-rw-r--r--src/liblzma/api/lzma/stream_flags.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/liblzma/api/lzma/stream_flags.h b/src/liblzma/api/lzma/stream_flags.h
index c0ce75aa..52f88eac 100644
--- a/src/liblzma/api/lzma/stream_flags.h
+++ b/src/liblzma/api/lzma/stream_flags.h
@@ -127,7 +127,7 @@ typedef struct {
* this liblzma version.
* - LZMA_PROG_ERROR: Invalid options.
*/
-extern LZMA_API lzma_ret lzma_stream_header_encode(
+extern LZMA_API(lzma_ret) lzma_stream_header_encode(
const lzma_stream_flags *options, uint8_t *out)
lzma_attr_warn_unused_result;
@@ -144,7 +144,7 @@ extern LZMA_API lzma_ret lzma_stream_header_encode(
* this liblzma version.
* - LZMA_PROG_ERROR: Invalid options.
*/
-extern LZMA_API lzma_ret lzma_stream_footer_encode(
+extern LZMA_API(lzma_ret) lzma_stream_footer_encode(
const lzma_stream_flags *options, uint8_t *out)
lzma_attr_warn_unused_result;
@@ -179,7 +179,7 @@ extern LZMA_API lzma_ret lzma_stream_footer_encode(
* LZMA_FORMAT_ERROR is returned by lzma_stream_header_decode()
* when decoding non-first Stream.
*/
-extern LZMA_API lzma_ret lzma_stream_header_decode(
+extern LZMA_API(lzma_ret) lzma_stream_header_decode(
lzma_stream_flags *options, const uint8_t *in)
lzma_attr_warn_unused_result;
@@ -206,7 +206,7 @@ extern LZMA_API lzma_ret lzma_stream_header_decode(
* is corrupt (possibly truncated). Stream decoder in liblzma
* uses LZMA_DATA_ERROR in this situation.
*/
-extern LZMA_API lzma_ret lzma_stream_footer_decode(
+extern LZMA_API(lzma_ret) lzma_stream_footer_decode(
lzma_stream_flags *options, const uint8_t *in)
lzma_attr_warn_unused_result;
@@ -226,6 +226,6 @@ extern LZMA_API lzma_ret lzma_stream_footer_decode(
* - LZMA_PROG_ERROR: Invalid value, e.g. invalid check or
* backward_size.
*/
-extern LZMA_API lzma_ret lzma_stream_flags_compare(
+extern LZMA_API(lzma_ret) lzma_stream_flags_compare(
const lzma_stream_flags *a, const lzma_stream_flags *b)
lzma_attr_pure;