Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150602094135.GB10927@port70.net>
Date: Tue, 2 Jun 2015 11:41:35 +0200
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Subject: Re: time.h define NULL

* Daniel Cegie??ka <daniel.cegielka@...il.com> [2015-06-02 11:38:46 +0200]:
> 2015-06-02 11:35 GMT+02:00 Szabolcs Nagy <nsz@...t70.net>:
> >
> > * Tomasz Sterna <tomek@...oka.com> [2015-06-02 11:09:40 +0200]:
> > > Why does time.h unconditionally define NULL [1]?
> >
> > because it is required
> >
> > > It gives me the following warning during compilation:
> > >
> > > In file included from /usr/include/pthread.h:31:
> > > /usr/include/time.h:11:9: warning: 'NULL' macro redefined
> > > [-Wmacro-redefined]
> > > #define NULL 0L
> > >         ^
> >
> > what is the previous definition?
> 
> http://git.musl-libc.org/cgit/musl/tree/include/stddef.h#n7
> 

so why was one header compiled as c++ the other not?

> 
> 
> > and why is that conflicting?
> >
> > c11 6.10.3p2:
> >
> > #define A x
> > #define A x
> >
> > is valid
> >
> > #define A x
> > #define A y
> >
> > is not.
> >
> > >
> > > [1] http://git.musl-libc.org/cgit/musl/tree/include/time.h#n11
> > > --
> > >  /o__
> > > (_<^' It's better to burn out than it is to rust.

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.