summaryrefslogtreecommitdiff
path: root/zconf.h.cmakein
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2016-12-31 10:03:09 -0800
committerMark Adler <madler@alumni.caltech.edu>2016-12-31 10:06:40 -0800
commitcca27e95cf2bf057b2bbea93702135da3ca7be45 (patch)
tree10eac4a38123691dfcfaf6026a7d32a702f9067e /zconf.h.cmakein
parentb7fbee215674c3399212dffba1e71323056931d9 (diff)
downloadzlib-cca27e95cf2bf057b2bbea93702135da3ca7be45.tar.gz
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.
Diffstat (limited to 'zconf.h.cmakein')
-rw-r--r--zconf.h.cmakein11
1 files changed, 0 insertions, 11 deletions
diff --git a/zconf.h.cmakein b/zconf.h.cmakein
index 843aeb4..31619f3 100644
--- a/zconf.h.cmakein
+++ b/zconf.h.cmakein
@@ -239,17 +239,6 @@
# include <stddef.h>
typedef size_t z_size_t;
# endif
-# ifdef NO_SSIZE_T
- typedef NO_SSIZE_T z_ssize_t;
-# else
-# include <stddef.h>
-# include <sys/types.h>
-# ifdef _MSC_VER
- typedef intptr_t z_ssize_t;
-# else
- typedef ssize_t z_ssize_t;
-# endif
-# endif
# undef z_longlong
#endif