Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1459492273-4029-1-git-send-email-masanori.ogino@gmail.com>
Date: Fri,  1 Apr 2016 15:31:13 +0900
From: Masanori Ogino <masanori.ogino@...il.com>
To: musl@...ts.openwall.com
Cc: Masanori Ogino <masanori.ogino@...il.com>
Subject: [PATCH] Add stdc-predef.h.

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

Signed-off-by: Masanori Ogino <masanori.ogino@...il.com>
---
 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
+#define __STDC_UTF_16__ 1
+#define __STDC_UTF_32__ 1
+
+#if defined(__GCC_IEC_559) && __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. */
+
+#endif
-- 
2.7.3

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.