[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: libssh 0.8.4 MSVC Windows build issue


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 <asn@xxxxxxxxxxxxxx>
> Sent: Wednesday, October 17, 2018 11:13 AM
> To: Wolf Wolfswinkel <wolf.wolfswinkel@xxxxxxxxxxxxx>
> Cc: libssh@xxxxxxxxxx
> 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                 asn@xxxxxxxxxxxxxx
> GPG-ID:     8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Follow-Ups:
Re: libssh 0.8.4 MSVC Windows build issueAndreas Schneider <asn@xxxxxxxxxxxxxx>
References:
libssh 0.8.4 MSVC Windows build issueWolf Wolfswinkel <wolf.wolfswinkel@xxxxxxxxxxxxx>
Re: libssh 0.8.4 MSVC Windows build issueAndreas Schneider <asn@xxxxxxxxxxxxxx>
RE: libssh 0.8.4 MSVC Windows build issueWolf Wolfswinkel <wolf.wolfswinkel@xxxxxxxxxxxxx>
Re: libssh 0.8.4 MSVC Windows build issueAndreas Schneider <asn@xxxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org