From 5a854cfb265d816e78f7a8c6d914154d89c796fb Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Tue, 18 Sep 2007 18:13:18 +0000 Subject: [PATCH] fixed ssize_t typedef; added a define to detect already defined ssize_t. --- include/libssh2.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/libssh2.h b/include/libssh2.h index ccc8afd..3e5b747 100644 --- a/include/libssh2.h +++ b/include/libssh2.h @@ -72,8 +72,11 @@ typedef unsigned int uint32_t; #if defined(LIBSSH2_WIN32) && defined(_MSC_VER) && (_MSC_VER <= 1400) typedef unsigned __int64 libssh2_uint64_t; typedef __int64 libssh2_int64_t; -typedef long ssize_t; typedef unsigned int uint32_t; +#ifndef _SSIZE_T_DEFINED +typedef int ssize_t; +#define _SSIZE_T_DEFINED +#endif #else typedef unsigned long long libssh2_uint64_t; typedef long long libssh2_int64_t;