cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: design problem with CURL_SIZEOF_LONG in 7.19.0

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 4 Sep 2008 22:22:06 +0200 (CEST)

On Thu, 4 Sep 2008, Mohun Biswas wrote:

> Could the stuff in curlbuild.h/curlrules.h be wrapped in ifdefs such that
> someone in my position could override the checks by simply asserting "I know
> the answers and here they are"? I.e. something like
>
> #if !defined(CURL_SIZEOF_CURL_OFF_T)
> #endif
>
> and
>
> #if !defined(CURL_SIZEOF_LONG)
> #endif

I certainly wouldn't mind a system that lets users of these files override the
values they want to define.

But header files that are "generated" at configure time for the particular
build you're about to do is here to stay for libcurl in my opinion, and I can
see some more uses of this get introduced soon. We have in fact had some
problems in the past because of the 100% generic headers, and now we have the
chance to fix those flaws.

-- 
  / daniel.haxx.se
Received on 2008-09-04