[PATCH 3/3] configure: Use 0 instead of NULL because NULL isn't defined.

Stefan Dösinger stefan at codeweavers.com
Sat Oct 20 05:26:40 CDT 2007


Am Samstag, 20. Oktober 2007 00:36:13 schrieb Ken Thomases:
> 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
> pointer naturally?  Maybe that's C++.
I think with -pedantic it warns about that. It could be gcc version dependent 
too.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20071020/930d1a65/attachment.pgp 


More information about the wine-devel mailing list