From 992aff7aca8f05183f14eb3782927f877e1dc172 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 6 Jul 2010 16:17:59 +0200 Subject: [PATCH] typedef: make ssize_t get typedef without LIBSSH2_WIN32 The condition around the ssize_t typedef depended on both LIBSSH2_WIN32 *and* _MSC_VER being defined when it should be enough to depend on _MSC_VER only. It also makes it nicer so libssh2-using code builds fine without having custom defines. --- include/libssh2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libssh2.h b/include/libssh2.h index 95c557b..95e1fe7 100644 --- a/include/libssh2.h +++ b/include/libssh2.h @@ -73,7 +73,7 @@ typedef unsigned char uint8_t; typedef unsigned int uint32_t; #endif -#if defined(LIBSSH2_WIN32) && defined(_MSC_VER) +#ifdef _MSC_VER typedef unsigned char uint8_t; typedef unsigned int uint32_t; typedef unsigned __int64 libssh2_uint64_t;