From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7853 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Daniel_Cegie=C5=82ka?= Newsgroups: gmane.linux.lib.musl.general Subject: Re: time.h define NULL Date: Tue, 2 Jun 2015 11:38:46 +0200 Message-ID: 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 X-Trace: ger.gmane.org 1433237977 18554 80.91.229.3 (2 Jun 2015 09:39:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Jun 2015 09:39:37 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7866-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jun 02 11:39:28 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 1YzifN-0002u0-Nd for gllmg-musl@m.gmane.org; Tue, 02 Jun 2015 11:39:25 +0200 Original-Received: (qmail 25897 invoked by uid 550); 2 Jun 2015 09:39:19 -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 25879 invoked from network); 2 Jun 2015 09:39:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=WxUsB8d1/65qjaHzIpOOvrZb5sXd9/SUXtuSZfGgJI8=; b=KX7jEesFY6b6kKfsT9QJApi1ltU+JITXnhzfQ3tNseD5cvKqnH7t6QubEi2Ou1LNFN PknNS7QO0DT0sc7hOgPIg4d3pglBF7hVTQYC2HcL6i50hSAiD3FiXio22bNdiKcxJ8S1 L/w042lMivEIcKUDLSoVE9AfUfT6/Rtav/0qjY/BHgjoF0HMOHlWXzzKpHpWet4IFEGh WWEVh44F7KjBrkVl0qDUjRRJyVuHR1m2URlPP7+k8On/pBOP37IaFj9G+MUiXrHNfMg/ yZDG0F5VfQ8GBOM15QtugOjpgijnZLtETmxVdZRito8RKxUXRbWQHSEGhqMWUbMRXnqN 9X8A== X-Received: by 10.140.233.214 with SMTP id e205mr29208234qhc.68.1433237946625; Tue, 02 Jun 2015 02:39:06 -0700 (PDT) In-Reply-To: <20150602093553.GA10927@port70.net> Xref: news.gmane.org gmane.linux.lib.musl.general:7853 Archived-At: 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 > 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.