cURL / Mailing Lists / curl-library / Single Mail


ssize_t: libcurl vs libssh2

From: <>
Date: Tue, 18 Sep 2007 03:26:20 -0700 (PDT)

hello everyone,

i'm building libcurl 7.17.0 with libssh2 0.17 for WIN32.

libcurl and libssh2 both define ssize_t, but use different types:

in libssh2.h it says:

75 typedef long ssize_t;

in config-win32.h libcurl does

287 #define ssize_t int

libcurl compiles, but gives me warnings:

..\..\libssh2\include\libssh2.h(75) : warning C4091: 'typedef ' : ignored
on left of 'long' when no variable is declared

also, execution doesn't seem to go the way it should.

what is the best way to work around this ?

thanks a lot
Received on 2007-09-18