From cca27e95cf2bf057b2bbea93702135da3ca7be45 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Sat, 31 Dec 2016 10:03:09 -0800 Subject: Avoid the need for ssize_t. Limit read() and write() requests to sizes that fit in an int. This allows storing the return value in an int, and avoiding the need to use or construct an ssize_t type. This is required for Microsoft C, whose _read and _write functions take an unsigned request and return an int. --- zconf.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'zconf.h') diff --git a/zconf.h b/zconf.h index f6481d1..dc7209a 100644 --- a/zconf.h +++ b/zconf.h @@ -237,17 +237,6 @@ # include typedef size_t z_size_t; # endif -# ifdef NO_SSIZE_T - typedef NO_SSIZE_T z_ssize_t; -# else -# include -# include -# ifdef _MSC_VER - typedef intptr_t z_ssize_t; -# else - typedef ssize_t z_ssize_t; -# endif -# endif # undef z_longlong #endif -- cgit v1.2.1