If it is defined in Windows then what is the reason for not using it instead of defining ssize_it (as __int64 or int) in libcurl ?
-Gopi ________________________________ From: Vincent Torri <[email protected]> To: libcurl development <[email protected]> Cc: [email protected] Sent: Wed, 29 December, 2010 12:20:14 PM Subject: Re: libcurl + libssh2: strange error on Win64 (compiled using VS 2008) On Wed, Dec 29, 2010 at 6:26 PM, S.Gopi <[email protected]> wrote: > > > > >Hi All, > > Sorry for not replying quickly. For some reason my subscription to the list > is >set to digest mode and I didn't receive any of your mails (and my digest mail >went to spam folder) > >To reply all your questions: > >* I don't have a simple code to just demonstrate this, but if you guys insist >on >this then I can work on that. > > >* As I understand, the problem is libssh2 is returning a unsigned int (int) >which libcurl typecasts in to __int64. Am I correct ? If yes, I expect the >actual fix should be at libssh2, is that correct ? (I am CC'ing this to >libssh2-devel list as well) > >* I don't want to reinvest my time to get this work in mingw-w64. I spent a >good >few days to get this whole thing setup and I wish to avoid that (and any other >problem that may come out of mingw-w64). > >* Also what is the guarantee that the same issue won't happen if I use >mingw-w64 >? is it because ssize_t is declared correctly in mingw-w64 ? > look into io.h to see ho ssize_t is declared in mingw-w64 headers. But as another poster mentioned it, use SSIZE_T on Windows: http://msdn.microsoft.com/en-us/library/aa383751%28v=vs.85%29.aspx Vincent Torri
_______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
