[csw-maintainers] libcurl and 64 bit on x86

Chad Harp harpchad at opencsw.org
Wed Apr 15 15:57:51 CEST 2009


James Lee wrote:
> On 14/04/09, 21:32:12, Dagobert Michelsen <dam at opencsw.org> wrote regarding 
> [csw-maintainers] libcurl and 64 bit on x86:
> 
>>>  * Verify that the size previously defined and expected for long
>>>  * is the same as the one reported by sizeof() at compile time.
>>>  */
>>>
>>> typedef char
>>>   __curl_rule_01__
>>>     [CurlchkszEQ(long, CURL_SIZEOF_LONG)];
> 
>> CURL_SIZEOF_LONG is 4:
> 
>>> /opt/csw/include/curl/curlbuild.h:#define CURL_SIZEOF_LONG 4
> 
> 
> #define CURL_SIZEOF_LONG sizeof(long)
> 
> 
> 
> 
> James.
> _______________________________________________
> maintainers mailing list
> maintainers at lists.opencsw.org
> https://lists.opencsw.org/mailman/listinfo/maintainers

curl does a check to make sure that CURL_SIZEOF_LONG == sizeof(long), so 
   by changing CURL_SIZEOF_LONG to sizeof(long) I'd just be saying
sizeof(long) == sizeof(long). :)

There's a discussion going on over on the curl mailing list as to how to 
make this more friendly towards packaging for multiple architectures, 
but the consensus for now seems to be to wrap the headers.



More information about the maintainers mailing list