Subject: Re: libssh2 does not compile with MSYS/MinGW

Re: libssh2 does not compile with MSYS/MinGW

From: Vincent Torri <vincent.torri_at_gmail.com>
Date: Sat, 4 Jun 2011 23:22:03 +0200

On Sat, Jun 4, 2011 at 11:18 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Sat, 4 Jun 2011, Vincent Torri wrote:
>
> Indeed, WinSock2.h is included only with vc++. To fix that, line 90 must
>> be replaced by
>>
>> #ifdef _WIN32
>>
>
> Line 90 of what? And is that working for cygwin as well?
>

oups, sorry, i forgot it : libssh2.h

and it will work for cygwin.

line 90 of libssh2.h is

#ifdef _MSC_VER

which mean that it's only for vc++

with

#ifdef _WIN32, it will include the windows headers for all Windows compiler

Vincent Torri

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-06-04