Subject: [libssh2] [ libssh2-Bugs-1946268 ] Visual Studio 2008 fixes

[libssh2] [ libssh2-Bugs-1946268 ] Visual Studio 2008 fixes

From: <>
Date: Fri, 18 Apr 2008 19:32:51 -0700

Bugs item #1946268, was opened at 2008-04-18 21:32
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: misc
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Neil Gierman (roadrunn)
Assigned to: Nobody/Anonymous (nobody)
Summary: Visual Studio 2008 fixes

Initial Comment:
It seems that the new SDK that ships with Visual Studio 2008 has some incompatibilities.

As mentioned at I had to remove the define of _vsnprintf

ssize_t and unit32_t are not longer defined so I had to define then to the Win32 types that were left.

A snip from my win32/libssh2_config.h is below:

#ifdef _MSC_VER
#define snprintf _snprintf
#define ssize_t SSIZE_T
#define uint32_t UINT32
#define strncasecmp _strnicmp
#define strcasecmp _stricmp
#ifdef __MINGW32__
#define strncasecmp strnicmp
#define strcasecmp stricmp
#endif /* __MINGW32__ */
#endif /* _MSC_VER */


You can respond by visiting:

This email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.;198757673;13503038;p?
libssh2-devel mailing list
Received on 2008-04-19