From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7855 Path: news.gmane.org!not-for-mail From: Tomasz Sterna Newsgroups: gmane.linux.lib.musl.general Subject: Re: time.h define NULL Date: Tue, 02 Jun 2015 13:16:31 +0200 Organization: Xiaoka.com Message-ID: <1433243791.2010.21.camel@xiaoka.com> 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="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1433243812 16649 80.91.229.3 (2 Jun 2015 11:16:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Jun 2015 11:16:52 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7868-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jun 02 13:16:51 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 1YzkBZ-0002Un-Kt for gllmg-musl@m.gmane.org; Tue, 02 Jun 2015 13:16:45 +0200 Original-Received: (qmail 8061 invoked by uid 550); 2 Jun 2015 11:16:44 -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 8043 invoked from network); 2 Jun 2015 11:16:43 -0000 In-Reply-To: <20150602093553.GA10927@port70.net> X-Mailer: Evolution 3.12.11 (3.12.11-1.fc21) X-Scan-Signature: xkh0.infr.xiaoka.com 1YzkBM-0005eh-8h 7fdf0c1c008156af202c358dd7fb2d9d Xref: news.gmane.org gmane.linux.lib.musl.general:7855 Archived-At: Dnia 2015-06-02, wto o godzinie 11:35 +0200, Szabolcs Nagy pisze: > > Why does time.h unconditionally define NULL [1]? > because it is required Required by what? > > /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? Previous definition is: #define NULL (0) it is in one of headers of the application I'm trying to build against musl. Even if it is required by time.h, shouldn't it be guarded by #ifndef NULL? time.h is not stand-alone unit and is designed to be included to other software. -- /o__ Q: What do agnostic, insomniac dyslexics do at night? (_<^' A: Stay awake and wonder if there's a dog.