From fa2ba2e3c3b3a684b7db51cc47c8c7e1d5934880 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 20 Jul 2009 13:07:38 -0400 Subject: 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 --- include/wchar-stub.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 include/wchar-stub.h (limited to 'include/wchar-stub.h') 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 -- cgit v1.2.3