Create z_size_t and z_ssize_t types.

Normally these are set to size_t and ssize_t. But if they do not
exist, then they are set to the smallest integer type that can
contain a pointer. size_t is unsigned and ssize_t is signed.
This commit is contained in:
Mark Adler
2016-12-03 10:27:14 -08:00
parent c5ee34c28a
commit ca50ebd4df
8 changed files with 144 additions and 17 deletions

View File

@@ -23,7 +23,7 @@ local int gz_load(state, buf, len, have)
unsigned len;
unsigned *have;
{
ssize_t ret;
z_ssize_t ret;
*have = 0;
do {