summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2016-07-03 20:03:30 -0400
committerRich Felker <dalias@aerifal.cx>2016-07-03 20:03:30 -0400
commit0f47367751a4baca80ef4f5ab11dbb9b6d7e8bdd (patch)
tree0387bac503138880bca5923d3cbda5e08d2099ec
parent0c8bc102f287d3993751d80ba2dffb01e0c8bc7f (diff)
downloadmusl-0f47367751a4baca80ef4f5ab11dbb9b6d7e8bdd.tar.gz
musl-0f47367751a4baca80ef4f5ab11dbb9b6d7e8bdd.tar.bz2
musl-0f47367751a4baca80ef4f5ab11dbb9b6d7e8bdd.tar.xz
musl-0f47367751a4baca80ef4f5ab11dbb9b6d7e8bdd.zip
add stdc-predef.h for library-level predefined macros
modern compilers (for gcc, versions 4.8 and later) automatically pre-include <stdc-predef.h> to obtain the values of certain predefined macros specified by ISO C but which reflect properties of the library implementation, not just the compiler. provide values indicating that wchar_t is Unicode-encoded and that Annex F (IEEE floating point) is supported unless the compiler indicates otherwise. based on patch by Masanori Ogino.
-rw-r--r--include/stdc-predef.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/stdc-predef.h b/include/stdc-predef.h
new file mode 100644
index 00000000..f8cd4b89
--- /dev/null
+++ b/include/stdc-predef.h
@@ -0,0 +1,10 @@
+#ifndef _STDC_PREDEF_H
+#define _STDC_PREDEF_H
+
+#define __STDC_ISO_10646__ 201206L
+
+#if !defined(__GCC_IEC_559) || __GCC_IEC_559 > 0
+#define __STDC_IEC_559__ 1
+#endif
+
+#endif