From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9809 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] Add stdc-predef.h. Date: Fri, 1 Apr 2016 11:37:37 +0200 Message-ID: <20160401093737.GS9862@port70.net> References: <1459492273-4029-1-git-send-email-masanori.ogino@gmail.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 1459503478 24431 80.91.229.3 (1 Apr 2016 09:37:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Apr 2016 09:37:58 +0000 (UTC) Cc: Masanori Ogino To: musl@lists.openwall.com Original-X-From: musl-return-9822-gllmg-musl=m.gmane.org@lists.openwall.com Fri Apr 01 11:37:57 2016 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 1alvWf-0008KY-LZ for gllmg-musl@m.gmane.org; Fri, 01 Apr 2016 11:37:57 +0200 Original-Received: (qmail 18002 invoked by uid 550); 1 Apr 2016 09:37:49 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 17984 invoked from network); 1 Apr 2016 09:37:49 -0000 Mail-Followup-To: musl@lists.openwall.com, Masanori Ogino Content-Disposition: inline In-Reply-To: <1459492273-4029-1-git-send-email-masanori.ogino@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) Xref: news.gmane.org gmane.linux.lib.musl.general:9809 Archived-At: * Masanori Ogino [2016-04-01 15:31:13 +0900]: > Reference: http://www.openwall.com/lists/musl/2016/03/31/2 > > Signed-off-by: Masanori Ogino > --- > include/stdc-predef.h | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > create mode 100644 include/stdc-predef.h > > diff --git a/include/stdc-predef.h b/include/stdc-predef.h > new file mode 100644 > index 0000000..f599a33 > --- /dev/null > +++ b/include/stdc-predef.h > @@ -0,0 +1,18 @@ > +#ifndef _STDC_PREDEF_H > +#define _STDC_PREDEF_H > + > +/* FIXME: What is the exactly version supported by musl? */ > +/* ISO/IEC 10646:2011, Uncode 6.0 except U+20B9 INDIAN RUPEE SIGN */ > +#define __STDC_ISO_10646__ 201103L i think it's unicode 6.1, that is ISO/IEC 10646:2012 #define __STDC_ISO_10646__ 201206L > +#define __STDC_UTF_16__ 1 > +#define __STDC_UTF_32__ 1 these are defined by gcc since it matters for u'x' and U'x' literals. > + > +#if defined(__GCC_IEC_559) && __GCC_IEC_559 > 0 undefined macros are implicitly 0 so #if __GCC_IEC_559 > 0 > +#define __STDC_IEC_559__ 1 > +#endif > + > +/* GCC does not support the "Annex G" complex arithmetic even though > + * __GCC_IEC_559_COMPLEX is defined. Thus, we leave __STDC_IEC_559_COMPLEX__ > + * undefined for now. */ this comment should go into the commit log (this file will be included into every translation unit so it should be minimal) > + > +#endif > -- > 2.7.3