cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Diff for /curl/acinclude.m4 between version 1.130 and 1.131

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 15 Oct 2007 12:43:37 -0700

On Mon, Oct 15, 2007 at 08:49:08PM +0200, Yang Tse wrote:
> I highly suspect that the inclusions you've done of <stddef.h> in
> acinclude.m4 are required just for the NULL definition I forgot to
> include...
>
> If this is the case, don't you think it is even better to remove the
> <stddef.h> includes and just define NULL as (void *)0 ? Something like
> the attached patch ?

Sure, that looks fine, or unilaterally #undef it first like is done elsewhere
in that file. But including stddef.h makes the code 1 line shorter! :-)

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-10-15