From f8121a27c4ded304cf486d3926d34537cc7bf86e Mon Sep 17 00:00:00 2001 From: bvgastel <bvgastel@bitpowder.com> Date: Sat, 13 Oct 2018 20:48:09 +0200 Subject: [PATCH] Fix ssize_t check for MXE (#82) The MXE build environment (to cross-compile Windows binaries from Linux) uses the _SSIZE_T_DEFINED instead of the _SSIZE_T, and fails otherwise due to conflicting types. --- src/zip.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zip.h b/src/zip.h index 7ac7f39..3ab3739 100644 --- a/src/zip.h +++ b/src/zip.h @@ -19,7 +19,7 @@ extern "C" { #endif -#ifndef _SSIZE_T +#if !defined(_SSIZE_T_DEFINED) && !defined(_SSIZE_T) #define _SSIZE_T typedef long ssize_t; /* byte count or error */ #endif