summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-07-20 13:07:38 -0400
committerAustin Foxley <austinf@cetoncorp.com>2009-08-19 12:41:42 -0700
commit44896253aab05ab2d41143337761859250f0cea4 (patch)
tree3a050522d17e7605441d929ee7004e76b0415e45 /include
parent42cbeb20c9018104fcd05d37e28173cbb944cd79 (diff)
downloaduClibc-alpine-44896253aab05ab2d41143337761859250f0cea4.tar.bz2
uClibc-alpine-44896253aab05ab2d41143337761859250f0cea4.tar.xz
add a wchar.h stub
The basic C standard requires a few wchar types, so provide those even when wchar support is disabled. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'include')
-rw-r--r--include/wchar-stub.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/wchar-stub.h b/include/wchar-stub.h
new file mode 100644
index 000000000..0b0aa29aa
--- /dev/null
+++ b/include/wchar-stub.h
@@ -0,0 +1,14 @@
+/* This wchar.h is used if wchar support is disabled in uClibc.
+ * We still want to provide a few basic definitions as the basic
+ * C standard requires them. And it makes our lives easier with
+ * no additional overhead.
+ */
+
+#ifndef _WCHAR_H
+#define _WCHAR_H
+
+#define MB_CUR_MAX 1
+typedef unsigned int wint_t;
+#define WEOF (0xffffffffu)
+
+#endif