From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4402 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: __STDC_NO_THREADS__ Date: Sun, 15 Dec 2013 19:58:59 -0500 Message-ID: <20131216005858.GY24286@brightrain.aerifal.cx> References: 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 1387155550 27534 80.91.229.3 (16 Dec 2013 00:59:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Dec 2013 00:59:10 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4406-gllmg-musl=m.gmane.org@lists.openwall.com Mon Dec 16 01:59:16 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1VsMWg-0002bS-KA for gllmg-musl@plane.gmane.org; Mon, 16 Dec 2013 01:59:14 +0100 Original-Received: (qmail 32123 invoked by uid 550); 16 Dec 2013 00:59:13 -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 32115 invoked from network); 16 Dec 2013 00:59:13 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4402 Archived-At: On Sun, Dec 15, 2013 at 03:36:39PM -0800, Shawn Landden wrote: > we need to define __STDC_NO_THREADS__ like glibc for C11 compat. > > -Shawn > > see page 376 of c11 standard This requires support from the compiler (in the form of pre-including stdc-predef.h) which is only available in gcc 4.8 and later. Adding it is on the agenda (not sure if this is documented anywhere) for predefined macros other than __STDC_NO_THREADS__. As for __STDC_NO_THREADS__, the intent is to implement the functionality rather than documenting it as unsupported, but if it remains missing when we add stdc-predef.h, we could define it there. Rich