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_read_open.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_read_open.3')
-rw-r--r-- | libarchive/archive_read_open.3 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libarchive/archive_read_open.3 b/libarchive/archive_read_open.3 index 30a740be..4d8272ca 100644 --- a/libarchive/archive_read_open.3 +++ b/libarchive/archive_read_open.3 @@ -130,14 +130,14 @@ objects can be found in the overview manual page for The callback functions must match the following prototypes: .Bl -item -offset indent .It -.Ft typedef ssize_t +.Ft typedef la_ssize_t .Fo archive_read_callback .Fa "struct archive *" .Fa "void *client_data" .Fa "const void **buffer" .Fc .It -.Ft typedef off_t +.Ft typedef la_int64_t .Fo archive_skip_callback .Fa "struct archive *" .Fa "void *client_data" |