diff options
author | Philippe Daouadi <pdaouadi@aldebaran.com> | 2015-06-08 16:10:02 +0200 |
---|---|---|
committer | Philippe Daouadi <pdaouadi@aldebaran.com> | 2015-06-08 16:15:12 +0200 |
commit | 72e98eb4ffed327092fbeb8eac7ae37c6093064a (patch) | |
tree | 1808c192bf0c5c0dc8e03ea09c46ca5fecc471a0 /libarchive/archive_write_data.3 | |
parent | aba7cd3e9c4da0be0a60e8ae2249ecc9ac49977c (diff) | |
download | libarchive-72e98eb4ffed327092fbeb8eac7ae37c6093064a.tar.gz |
Do not use private macros for special types
When you need to write a callback for archive_read_open2, you must provide a
function which has the same signature as the typedef. The documentation says
that the read callback returns a ssize_t, but on windows there is no such
ssize_t. libarchive falls back on another type and use the private macro
__LA_SSIZE_T, thus it is not possible to write portable code that use
read_open2.
This patch replaces that macro with a simple typedef la_ssize_t (and does the
same for la_int64_t).
Diffstat (limited to 'libarchive/archive_write_data.3')
-rw-r--r-- | libarchive/archive_write_data.3 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_write_data.3 b/libarchive/archive_write_data.3 index a85f61d3..0cdd25f1 100644 --- a/libarchive/archive_write_data.3 +++ b/libarchive/archive_write_data.3 @@ -34,7 +34,7 @@ Streaming Archive Library (libarchive, -larchive) .Sh SYNOPSIS .In archive.h -.Ft ssize_t +.Ft la_ssize_t .Fn archive_write_data "struct archive *" "const void *" "size_t" .Sh DESCRIPTION Write data corresponding to the header just written. |