From c3d89b9720a9fdd4ad8a750e331cdf602c01f645 Mon Sep 17 00:00:00 2001 From: Zenju Date: Wed, 20 Mar 2019 19:15:17 +0100 Subject: [PATCH] libssh2.h: Fix Error C2371 'ssize_t': redefinition Closes #331 --- include/libssh2.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/libssh2.h b/include/libssh2.h index 187539c6..c17c30c9 100644 --- a/include/libssh2.h +++ b/include/libssh2.h @@ -137,8 +137,9 @@ typedef __int64 int64_t; typedef unsigned __int64 uint64_t; typedef unsigned __int64 libssh2_uint64_t; typedef __int64 libssh2_int64_t; -#ifndef ssize_t +#if (!defined(HAVE_SSIZE_T) && !defined(ssize_t)) typedef SSIZE_T ssize_t; +#define HAVE_SSIZE_T #endif #else #include