Use intptr_t for z_ssize_t on MSVC.

pull/125/merge
Mark Adler 8 years ago
parent 8f147c3d12
commit f3fcb92cf6
  1. 7
      zconf.h
  2. 7
      zconf.h.cmakein
  3. 7
      zconf.h.in

@ -240,8 +240,13 @@
# ifdef NO_SSIZE_T # ifdef NO_SSIZE_T
typedef NO_SSIZE_T z_ssize_t; typedef NO_SSIZE_T z_ssize_t;
# else # else
# include <stddef.h>
# include <sys/types.h> # include <sys/types.h>
typedef ssize_t z_ssize_t; # ifdef _MSC_VER
typedef intptr_t z_ssize_t;
# else
typedef ssize_t z_ssize_t;
# endif
# endif # endif
# undef z_longlong # undef z_longlong
#endif #endif

@ -242,8 +242,13 @@
# ifdef NO_SSIZE_T # ifdef NO_SSIZE_T
typedef NO_SSIZE_T z_ssize_t; typedef NO_SSIZE_T z_ssize_t;
# else # else
# include <stddef.h>
# include <sys/types.h> # include <sys/types.h>
typedef ssize_t z_ssize_t; # ifdef _MSC_VER
typedef intptr_t z_ssize_t;
# else
typedef ssize_t z_ssize_t;
# endif
# endif # endif
# undef z_longlong # undef z_longlong
#endif #endif

@ -240,8 +240,13 @@
# ifdef NO_SSIZE_T # ifdef NO_SSIZE_T
typedef NO_SSIZE_T z_ssize_t; typedef NO_SSIZE_T z_ssize_t;
# else # else
# include <stddef.h>
# include <sys/types.h> # include <sys/types.h>
typedef ssize_t z_ssize_t; # ifdef _MSC_VER
typedef intptr_t z_ssize_t;
# else
typedef ssize_t z_ssize_t;
# endif
# endif # endif
# undef z_longlong # undef z_longlong
#endif #endif

Loading…
Cancel
Save