mailing list of musl libc
 help / color / mirror / code / Atom feed
* [PATCH v2] Add stdc-predef.h.
@ 2016-04-05  2:23 Masanori Ogino
  2016-06-01  8:21 ` Masanori Ogino
  0 siblings, 1 reply; 8+ messages in thread
From: Masanori Ogino @ 2016-04-05  2:23 UTC (permalink / raw)
  To: musl; +Cc: Masanori Ogino

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



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-07-06  7:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-05  2:23 [PATCH v2] Add stdc-predef.h Masanori Ogino
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

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).