aboutsummaryrefslogtreecommitdiffstats
path: root/libc/include/stdio.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2012-10-01 15:12:40 -0700
committerElliott Hughes <enh@google.com>2012-10-01 15:12:40 -0700
commit0cc0d250fd3097e4c26b70cdeb5c47caac634069 (patch)
tree96aafbb8f67296aab27a805de9a6fc3536fac910 /libc/include/stdio.h
parentfe712e6caedccbbba24bda8429cb0b8cc6057ff1 (diff)
downloadandroid_bionic-0cc0d250fd3097e4c26b70cdeb5c47caac634069.tar.gz
android_bionic-0cc0d250fd3097e4c26b70cdeb5c47caac634069.tar.bz2
android_bionic-0cc0d250fd3097e4c26b70cdeb5c47caac634069.zip
Remove useless #defines and incorrect claims from header files.
The various __need_* macros were write-only. Change-Id: Id3cca34188e0801fdf93a038b22f2817226ad9c2
Diffstat (limited to 'libc/include/stdio.h')
-rw-r--r--libc/include/stdio.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/libc/include/stdio.h b/libc/include/stdio.h
index ca7809234..d7c881cb4 100644
--- a/libc/include/stdio.h
+++ b/libc/include/stdio.h
@@ -41,23 +41,16 @@
#include <sys/cdefs.h>
#include <sys/_types.h>
-/* va_list and size_t must be defined by stdio.h according to Posix */
-#define __need___va_list
#include <stdarg.h>
-
-/* note that this forces stddef.h to *only* define size_t */
-#define __need_size_t
-#include <stddef.h>
-
#include <stddef.h>
#if __BSD_VISIBLE || __POSIX_VISIBLE || __XPG_VISIBLE
#include <sys/types.h> /* XXX should be removed */
#endif
-#ifndef _SIZE_T_DEFINED_
-#define _SIZE_T_DEFINED_
-typedef unsigned long size_t;
+#ifndef _SIZE_T_DEFINED_
+#define _SIZE_T_DEFINED_
+typedef unsigned int size_t;
#endif
#ifndef _SSIZE_T_DEFINED_