On Sat, Jun 4, 2011 at 11:18 PM, Daniel Stenberg <dan...@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

Reply via email to