mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Masanori Ogino <masanori.ogino@gmail.com>
To: musl@lists.openwall.com
Cc: Masanori Ogino <masanori.ogino@gmail.com>
Subject: [PATCH v2] Add stdc-predef.h.
Date: Tue,  5 Apr 2016 11:23:43 +0900	[thread overview]
Message-ID: <1459823023-5951-1-git-send-email-masanori.ogino@gmail.com> (raw)

Note that 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.

Reference: http://www.openwall.com/lists/musl/2016/03/31/2

Signed-off-by: Masanori Ogino <masanori.ogino@gmail.com>
---
 include/stdc-predef.h | 11 +++++++++++
 1 file changed, 11 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..baa8a54
--- /dev/null
+++ b/include/stdc-predef.h
@@ -0,0 +1,11 @@
+#ifndef _STDC_PREDEF_H
+#define _STDC_PREDEF_H
+
+/* ISO/IEC 10646:2012, equivalent to Unicode 6.1 */
+#define __STDC_ISO_10646__ 201206L
+
+#if __GCC_IEC_559 > 0
+#define __STDC_IEC_559__ 1
+#endif
+
+#endif
-- 
2.7.3



             reply	other threads:[~2016-04-05  2:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-05  2:23 Masanori Ogino [this message]
2016-06-01  8:21 ` Masanori Ogino
2016-06-03 19:04   ` Rich Felker
2016-06-04  4:19     ` Masanori Ogino
2016-06-04  5:04       ` Rich Felker
2016-06-08 14:57         ` Masanori Ogino
2016-07-04  0:16           ` Rich Felker
2016-07-06  7:39             ` Masanori Ogino

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1459823023-5951-1-git-send-email-masanori.ogino@gmail.com \
    --to=masanori.ogino@gmail.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).