summaryrefslogtreecommitdiffstats
path: root/libc/include/wchar.h
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-01-15 16:12:07 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-01-15 16:12:07 -0800
commite5cc1f386b167b9f7bfdebc7219e89aa9b71e4b2 (patch)
tree2cbd43daa6744ed80e833528f8cbfc0c485e5253 /libc/include/wchar.h
parent6d6c82c7a0a6b9a89f61b61c66f9b90d9c7177dc (diff)
downloadbionic-e5cc1f386b167b9f7bfdebc7219e89aa9b71e4b2.zip
bionic-e5cc1f386b167b9f7bfdebc7219e89aa9b71e4b2.tar.gz
bionic-e5cc1f386b167b9f7bfdebc7219e89aa9b71e4b2.tar.bz2
auto import from //branches/cupcake/...@126645
Diffstat (limited to 'libc/include/wchar.h')
-rw-r--r--libc/include/wchar.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/libc/include/wchar.h b/libc/include/wchar.h
index 3dadc98..e2feb60 100644
--- a/libc/include/wchar.h
+++ b/libc/include/wchar.h
@@ -30,11 +30,17 @@
#include <sys/cdefs.h>
#include <stdio.h>
+
+/* wchar_t is required in stdlib.h according to POSIX */
+#define __need___wchar_t
#include <stddef.h>
+
#include <stdarg.h>
#include <time.h>
#include <malloc.h>
+#include <stddef.h>
+
/* IMPORTANT: Any code that relies on wide character support is essentially
* non-portable and/or broken. the only reason this header exist
* is because I'm really a nice guy. However, I'm not nice enough
@@ -44,11 +50,6 @@
__BEGIN_DECLS
-#ifndef __cplusplus
-/* wchar_t is a builtin keyword of g++ */
-typedef unsigned char wchar_t;
-#endif
-
typedef int wint_t;
typedef struct { int dummy; } mbstate_t;