That leads to errors because SSIZE_T is undefined.

Adding

#include <BaseTsd.h>

to priv.h fixes the issue.

Wolf

> -----Original Message-----
> From: Andreas Schneider <[email protected]>
> Sent: Wednesday, October 17, 2018 11:13 AM
> To: Wolf Wolfswinkel <[email protected]>
> Cc: [email protected]
> Subject: Re: libssh 0.8.4 MSVC Windows build issue
> 
> On Wednesday, 17 October 2018 10:01:33 CEST Wolf Wolfswinkel wrote:
> > The patch works. Thank you.
> >
> > It does lead to a warning though:
> >
> > libssh-0.8.4\include\libssh\sftp.h(57): warning C4142: 'ssize_t': benign
> > redefinition of type [libssh-0.8.4\build_win32\src\ssh_shared.vcxproj]
> > libssh-0.8.4\include\libssh\priv.h(136): note: see declaration of 'ssize_t'
> 
> The attached updated patch should address this. Could you please give
> feedback
> if it works correctly now?
> 
> 
> Thanks,
> 
> 
>       Andreas
> 
> --
> Andreas Schneider                 [email protected]
> GPG-ID:     8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Reply via email to