Subject: Re: some warnings when compiling for windows

Re: some warnings when compiling for windows

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 31 Oct 2011 13:50:11 +0100 (CET)

On Mon, 31 Oct 2011, Vincent Torri wrote:

> Btw, it's just a warning. Also, you ido nclude windows.h:
>
> in libssh2_priv.h (line 47):
>
> #include <windows.h>

You're right of course and I stand corrected...

> so a fix would be (line 47):
>
> #ifndef WIN32_LEAN_AND_MEAN
> # define WIN32_LEAN_AND_MEAN
> #endif
> #include <windows.h>
> #undef WIN32_LEAN_AND_MEAN

And this silences the warning nicely I presume?

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-10-31