From ffe690c4027381eef4ba450ef9f2d33eacf4665b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Podg=C3=B3rski?= Date: Fri, 13 Nov 2020 12:38:53 +0100 Subject: [PATCH] define __have_typedef_ssize_t (#147) --- src/zip.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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