cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Errno constants conflict on VC10

From: Tanguy Fautre <tanguyf_at_aristechnologies.com>
Date: Fri, 30 Apr 2010 17:27:04 +0100

> -----Original Message-----
> From: curl-library-bounces_at_cool.haxx.se [mailto:curl-library-
> bounces_at_cool.haxx.se] On Behalf Of Yang Tse
> Sent: 30 April 2010 4:10 PM
> To: libcurl development
> Subject: Re: Errno constants conflict on VC10
>
> 2010/4/30, Tanguy Fautre wrote:
> >
> > /* POSIX SUPPLEMENT */
> > #define EADDRINUSE 100
> > [...]
> > #define EWOULDBLOCK 140
>
> How nice. I assume that you are saying that all of the above are
> unconditionally defined in errno.h. Please confirm this or show which
> preprocessor statement makes them visible.

Yes, I confirm it's unconditionally defined in errno.h.

> Well, I hope you test the proposed fix. So if something is still
> missing, it won't go unnoticed.

I've just tested undefining all conflicting macros from errno to force Curl to use the WSA values (see modified setup_once.h as attached). Unless I've missed something, this should lead to the same behaviour as under previous VC versions.

> Just stick around reading http://curl.haxx.se/mail/etiquette.html
> meanwhile.

I assume you're referring to the top-posting problem. Well, what can I say except "Outlook"? Believe me, if I could I would use Thunderbird at the office. Though I've look a bit at Outlook's options, it should be better now

Cheers,

Tanguy

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2010-04-30