cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Introducing CURL_HAS() ?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 3 Sep 2015 22:34:45 +0200 (CEST)

On Thu, 3 Sep 2015, bch wrote:

> What does this offer over
>
> #ifdef CURL_SOCKOPT_ERROR
>
> , or how is it different ?

That's a really good question.

Come to think of it, the only real advantage it offers compared to that is
that it also works for enums, and looking at our list of symbols I think the
majority of them are enums...

Also, the way the script works you can take a new header file and put it into
a very old libcurl source code and it would still work. Although I'm not sure
that's terribly valuable.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2015-09-03