summaryrefslogtreecommitdiffstats
path: root/ndk/platforms/android-8/include
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2012-12-20 18:56:22 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2012-12-21 22:29:26 +0800
commit7980acf254e97c3c226bc633a7bb3910b7d296d1 (patch)
tree511315aef57dbcdf19526868162301fa58cd4db1 /ndk/platforms/android-8/include
parent852b358185a910bb3bdc9cec1ef3752c9bb4c522 (diff)
downloadandroid_development-7980acf254e97c3c226bc633a7bb3910b7d296d1.tar.gz
android_development-7980acf254e97c3c226bc633a7bb3910b7d296d1.tar.bz2
android_development-7980acf254e97c3c226bc633a7bb3910b7d296d1.zip
Remove duplicated definitions of size_t and ssize_t
See 3975cec694a0c9b42e3f7e671fcd678da92836c3 Change-Id: Ia40ff8de3ffe923fb983bb116b740942724c641a
Diffstat (limited to 'ndk/platforms/android-8/include')
-rw-r--r--ndk/platforms/android-8/include/stdio.h25
1 files changed, 2 insertions, 23 deletions
diff --git a/ndk/platforms/android-8/include/stdio.h b/ndk/platforms/android-8/include/stdio.h
index c38ed5a51..172c8d0dc 100644
--- a/ndk/platforms/android-8/include/stdio.h
+++ b/ndk/platforms/android-8/include/stdio.h
@@ -39,7 +39,7 @@
#define _STDIO_H_
#include <sys/cdefs.h>
-#include <sys/_types.h>
+#include <sys/types.h>
/* va_list and size_t must be defined by stdio.h according to Posix */
#define __need___va_list
@@ -49,30 +49,9 @@
#define __need_size_t
#include <stddef.h>
+#define __need_NULL
#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;
-#endif
-
-#ifndef _OFF_T_DEFINED_
-#define _OFF_T_DEFINED_
-typedef long off_t;
-#endif
-
-#ifndef NULL
-#ifdef __GNUG__
-#define NULL __null
-#else
-#define NULL 0L
-#endif
-#endif
-
#define _FSTDIO /* Define for new stdio with functions. */
typedef off_t fpos_t; /* stdio file position type */