From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7852 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:35:53 +0200 Message-ID: <20150602093553.GA10927@port70.net> References: <1433236180.2010.17.camel@xiaoka.com> 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 1433237781 15218 80.91.229.3 (2 Jun 2015 09:36:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Jun 2015 09:36:21 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7865-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jun 02 11:36:17 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 1YzicB-0000YR-9I for gllmg-musl@m.gmane.org; Tue, 02 Jun 2015 11:36:07 +0200 Original-Received: (qmail 24058 invoked by uid 550); 2 Jun 2015 09:36:05 -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 24040 invoked from network); 2 Jun 2015 09:36:05 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: <1433236180.2010.17.camel@xiaoka.com> User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:7852 Archived-At: * 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? 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.