summaryrefslogtreecommitdiffstats
path: root/libc/include/stdlib.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/stdlib.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/stdlib.h')
-rw-r--r--libc/include/stdlib.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h
index a821e03..acfe694 100644
--- a/libc/include/stdlib.h
+++ b/libc/include/stdlib.h
@@ -29,6 +29,13 @@
#define _STDLIB_H_
#include <sys/cdefs.h>
+
+/* wchar_t is required in stdlib.h according to POSIX.
+ * note that defining __need_wchar_t prevents stddef.h
+ * to define all other symbols it does normally */
+#define __need_wchar_t
+#include <stddef.h>
+
#include <stddef.h>
#include <string.h>
#include <alloca.h>