libc: x86: Fixed size_t definition.

This patch changes the declaration of size_t on x86 targets
to test for the __ANDROID__ macro, instead of ANDROID

__ANDROID__ should be a builting toolchain macro, while ANDROID
is usually added manually during the build.

Testing against __ANDROID__ allows us to use the header when
using the NDK's standalone x86 toolchain.

This is related to http://code.google.com/p/android/issues/detail?id=19011
The bug was already fixed in the NDK platform headers, this simply updates
the C library one accordingly.

Change-Id: Ie038c4c8b37b7d24e2e4ae4d7a63371b69c9a51e
This commit is contained in:
David 'Digit' Turner 2011-08-04 14:07:00 +02:00
parent 9efda5b7d0
commit d265046dcc
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@
/* the kernel defines size_t as unsigned int, but g++ wants it to be unsigned long */
#ifndef _SIZE_T_DEFINED_
# define _SIZE_T_DEFINED_
# ifdef ANDROID
# ifdef __ANDROID__
typedef unsigned int size_t;
# else
typedef unsigned long size_t;