diff --git a/src/zip.h b/src/zip.h index f8103603..d78dba23 100644 --- a/src/zip.h +++ b/src/zip.h @@ -21,7 +21,8 @@ extern "C" { #if !defined(_SSIZE_T_DEFINED) && !defined(_SSIZE_T_DEFINED_) && \ !defined(__DEFINED_ssize_t) && !defined(__ssize_t_defined) && \ - !defined(_SSIZE_T) && !defined(_SSIZE_T_) && !defined(_SSIZE_T_DECLARED) + !defined(_SSIZE_T) && !defined(_SSIZE_T_) && \ + !defined(_SSIZE_T_DECLARED) && !defined(__have_typedef_ssize_t) // 64-bit Windows is the only mainstream platform // where sizeof(long) != sizeof(void*) @@ -38,7 +39,7 @@ typedef long ssize_t; /* byte count or error */ #define _SSIZE_T #define _SSIZE_T_ #define _SSIZE_T_DECLARED - +#define __have_typedef_ssize_t #endif #ifndef MAX_PATH