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

* 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?
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.