cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: win32 autobuilds

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 9 Mar 2004 22:59:13 +0100 (CET)

On Tue, 9 Mar 2004, Greg Hewgill wrote:

> >Does anyone know what the FD_SET() macro does on Windows/MSVC that makes it
> >warn on these lines?
>
> An fd_set on win32 is expected to hold items of type SOCKET, which is
> typedef'd as an unsigned integer.

... while socket() still returns an int? That's really odd.

I figure we could consider walking this path to prevent the warnings:

#ifdef WIN32
#define CURL_FD_SET(x,y) FD_SET((SOCKET)x, y)
#else
#define CURL_FD_SET(x,y) FD_SET(x, y)
#endif

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
Received on 2004-03-09