From b4b8c51b324c77fd1404adc26660536dfd23cc7e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 29 Sep 2008 18:59:40 +0000 Subject: [PATCH] Neil Gierman provided improved Visual Studio 2008 code in bug #1946268 --- NEWS | 5 ++++- win32/libssh2_config.h | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index db4291f..ef9e810 100644 --- a/NEWS +++ b/NEWS @@ -1,7 +1,10 @@ Version 0.19 ( ) ------------------------------- -- Bug #1862727 fixed libssh2_poll() to work on windows (by defining HAVE_SELECT). +- Neil Gierman provided improved Visual Studio 2008 code in bug #1946268 + +- Bug #1862727 fixed libssh2_poll() to work on windows (by defining + HAVE_SELECT). - Based on bug #1815692, we introduce libssh2_sftp_seek2() that allows seeking beyond the 2GB margin even on 32bit machines. diff --git a/win32/libssh2_config.h b/win32/libssh2_config.h index 92f1711..3a8e117 100644 --- a/win32/libssh2_config.h +++ b/win32/libssh2_config.h @@ -44,7 +44,12 @@ static inline int usleep(int udelay) #ifdef _MSC_VER #define snprintf _snprintf +#if _MSC_VER < 1500 #define vsnprintf _vsnprintf +#else +#define ssize_t SSIZE_T +#define uint32_t UINT32 +#endif #define strncasecmp _strnicmp #define strcasecmp _stricmp #else