From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9847 Path: news.gmane.org!not-for-mail From: Masanori Ogino Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] Add stdc-predef.h. Date: Tue, 5 Apr 2016 10:48:49 +0900 Message-ID: References: <1459492273-4029-1-git-send-email-masanori.ogino@gmail.com> <20160401093737.GS9862@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 1459820947 19414 80.91.229.3 (5 Apr 2016 01:49:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Apr 2016 01:49:07 +0000 (UTC) To: musl@lists.openwall.com, Masanori Ogino Original-X-From: musl-return-9860-gllmg-musl=m.gmane.org@lists.openwall.com Tue Apr 05 03:49:06 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 1anG78-00033j-Eh for gllmg-musl@m.gmane.org; Tue, 05 Apr 2016 03:49:06 +0200 Original-Received: (qmail 14298 invoked by uid 550); 5 Apr 2016 01:49:02 -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 14247 invoked from network); 5 Apr 2016 01:49:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to; bh=ZcZN8pos3LQaI9Q/2OWM3VizL1/7JKCOyM7hq0ESXzg=; b=oRtS2ncBAQvernxYqY6vNwJMMrDlHtBFmbNXIGfrDp9t8xe0Azit7At2zcQrATXfO7 UTBHSQngQXkfu8lGeGpbugavC1zUgTzS2rTlyXVwF+qd7L5RNkv+adAFJhCJkVo/sxUt /srwoc+Ue1YbYdrJHaRElsIBj+jVgUS6mqm6E/kof/R8EifZAx12UyMA0CT1DHl+jRBa xJWgjmdv9KZI/gnlZvpUJKpkyYh8/Bi0hFJIcJDlaUJ2fUzH3RUP+9Lpa4FLrc5mriVU IgIGZA92OhRsHrw8xc80U8R33Y6gQ1btOROOCxFwLbqO2HlTDLo17d6iSVq7y5sEHrLX +s3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to; bh=ZcZN8pos3LQaI9Q/2OWM3VizL1/7JKCOyM7hq0ESXzg=; b=U4gZOvQQ8597Mxq7gklk/+zvY6lwVZbu8wzz1bf4OSRLyixt22sYyUb9N+A+Qb7nyV Q5PzJkY/Ognmpoa95gNV1uS2PUyBTczNF0sWIBBhj1IwuSow7JDAricGUywbOBJSF+GZ WPuq6B1dWVHNoBvvrDDtYq2BxCw+aV3+dqIu0IHQvfzhPH0BIFGDCWH8eZYX0IzKqDbk Ga57v5hU1ELU9Fb9sdJabM4wsF0XTgsm5kutIA95YIa7BoOZnV5EOQwTqgmRSox7sEB3 cePyF8xiEtEQVFRikxMfOqXvoPSyqmaVEHQ8dPkH8brVfFKtwqxdlX2EaqlmKgJu4BH8 q5NQ== X-Gm-Message-State: AD7BkJIVBqVlTEotH7uV1WE1EEsUP6QhOczzoBeAb5yWrgNsiH3+zBofNVl5hzpZtUoye3kvOJ1AIbbdrPQhsw== X-Received: by 10.157.27.155 with SMTP id z27mr11289657otd.99.1459820929278; Mon, 04 Apr 2016 18:48:49 -0700 (PDT) Original-Sender: masanoriogino@gmail.com In-Reply-To: <20160401093737.GS9862@port70.net> X-Google-Sender-Auth: wTLYIurtZPRLOOCtQjHSjzhvmwg Xref: news.gmane.org gmane.linux.lib.musl.general:9847 Archived-At: Thank you for reviewing. 2016-04-01 18:37 GMT+09:00 Szabolcs Nagy : > * 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 OK. >> +#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. I confirmed that they are defined with -std=gnu11. Thank you for pointing it out. >> + >> +#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) Sure. I will revise them. -- Masanori Ogino