From c3c0e88beda2abee4380237bbc7aa95da588c00d Mon Sep 17 00:00:00 2001 From: Mark D Horn Date: Thu, 4 Aug 2011 17:09:39 -0700 Subject: [PATCH] NDK: x86 header file has incorrect definition for ptrdiff_t See Bug http://code.google.com/p/android/issues/detail?id=19042 Change-Id: I8e975930e7f8c3c437ecdffbc6f6bc5028937829 Signed-off-by: Mark D Horn --- libc/arch-x86/include/machine/_types.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libc/arch-x86/include/machine/_types.h b/libc/arch-x86/include/machine/_types.h index 5e28c6408..65892a11e 100644 --- a/libc/arch-x86/include/machine/_types.h +++ b/libc/arch-x86/include/machine/_types.h @@ -51,7 +51,11 @@ typedef long int ssize_t; #endif #ifndef _PTRDIFF_T #define _PTRDIFF_T -typedef long ptrdiff_t; +# ifdef __ANDROID__ + typedef int ptrdiff_t; +# else + typedef long ptrdiff_t; +# endif #endif #include