From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7854 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: time.h define NULL Date: Tue, 2 Jun 2015 11:41:35 +0200 Message-ID: <20150602094135.GB10927@port70.net> References: <1433236180.2010.17.camel@xiaoka.com> <20150602093553.GA10927@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1433238118 20740 80.91.229.3 (2 Jun 2015 09:41:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Jun 2015 09:41:58 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7867-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jun 02 11:41:52 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Yzihh-0004e2-6L for gllmg-musl@m.gmane.org; Tue, 02 Jun 2015 11:41:49 +0200 Original-Received: (qmail 28014 invoked by uid 550); 2 Jun 2015 09:41:47 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 27996 invoked from network); 2 Jun 2015 09:41:47 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:7854 Archived-At: * Daniel Cegie??ka [2015-06-02 11:38:46 +0200]: > 2015-06-02 11:35 GMT+02:00 Szabolcs Nagy : > > > > * Tomasz Sterna [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.