MP3/MPlayer pre-release

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07 May 2006 Clemens Kirchgatterer <clemens@xxxxxxxx> wrote:
> s.huelswitt@xxxxxx (Stefan Huelswitt) wrote:
> 
>> Well, normaly NULL is defined as (void *)0, which is a pointer...
> 
> only in C. in C++ NULL == 0.
> 
> stddef.h:
> 
> #ifndef __cplusplus
> #define NULL ((void *)0)
> #else   /* C++ */
> #define NULL 0

This cannot be true.

If NULL == 0 for C++ it should make no difference, but gcc4 complains with
0 but not with NULL. So there is a differnce.

Regards.

-- 
Stefan Huelswitt
s.huelswitt@xxxxxx  | http://www.muempf.de/


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux