[PATCH 3/3] configure: Use 0 instead of NULL because NULL isn't defined.
Michael Stefaniuc
mstefani at redhat.com
Fri Oct 19 18:58:53 CDT 2007
Ken Thomases wrote:
> On Oct 19, 2007, at 5:24 PM, Stefan Dösinger wrote:
>
>> Am Freitag, 19. Oktober 2007 23:18:51 schrieb Ken Thomases:
>>> This makes the test test the proper thing on Mac OS X. It still
>>> fails, but
>>> for a good reason.
>>> ---
>>> configure.ac | 6 +++---
>>> 1 files changed, 3 insertions(+), 3 deletions(-)
>>> - char *name=NULL;
>>> + char *name=0;
>> Shouldn't that be (void *) 0 or (char *) 0?
>>
>
> I don't think that's necessary. It compiled without warning here,
> even with -Wall. Doesn't the C standard says that 0 casts to a
Actually it's not a cast. It's a heuristic that the compiler has to make
to detect a NULL pointer. The best heuristic for this is (char *) 0.
This is a limitation of the C language to not have NULL as integral part
of the language.
> pointer naturally? Maybe that's C++.
bye
michael
--
Michael Stefaniuc Tel.: +49-711-96437-199
Sr. Network Engineer Fax.: +49-711-96437-111
--------------------------------------------------------------------
Reg. Adresse: Red Hat GmbH, Hauptstätter Strasse 58, 70178 Stuttgart
Handelsregister: Amtsgericht Stuttgart HRB 153243
Geschäftsführer: Brendan Lane, Charlie Peters, Michael Cunningham,
Werner Knoblich
More information about the wine-devel
mailing list