Upstream android string implementation etc.

BUG=
TEST=

Review URL: http://codereview.chromium.org/7238018

git-svn-id: http://src.chromium.org/svn/trunk/src/build@90616 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
michaelbai@google.com 2011-06-27 19:13:10 +00:00
Родитель a081405db0
Коммит e729f35f20
1 изменённых файлов: 17 добавлений и 3 удалений

Просмотреть файл

@ -17,6 +17,8 @@
// A set of macros to use for platform detection.
#if defined(__APPLE__)
#define OS_MACOSX 1
#elif defined(ANDROID)
#define OS_ANDROID 1
#elif defined(__native_client__)
#define OS_NACL 1
#elif defined(__linux__)
@ -48,12 +50,14 @@
#endif
#if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_OPENBSD) || \
defined(OS_SOLARIS)
defined(OS_SOLARIS) || defined(OS_ANDROID)
#if !defined(USE_OPENSSL)
#define USE_NSS 1 // Default to use NSS for crypto, unless OpenSSL is chosen.
#endif
#ifndef OS_ANDROID
#define USE_X11 1 // Use X for graphics.
#endif
#endif
#if defined(USE_OPENSSL) && defined(USE_NSS)
#error Cannot use both OpenSSL and NSS
@ -61,8 +65,9 @@
// For access to standard POSIXish features, use OS_POSIX instead of a
// more specific macro.
#if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \
defined(OS_OPENBSD) || defined(OS_SOLARIS) || defined(OS_NACL)
#if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \
defined(OS_OPENBSD) || defined(OS_SOLARIS) || defined(OS_ANDROID) || \
defined(OS_NACL)
#define OS_POSIX 1
// Use base::DataPack for name/value pairs.
#define USE_BASE_DATA_PACK 1
@ -136,4 +141,13 @@
//define CROS_FONTS_USING_BCI
#endif
#if defined(OS_ANDROID)
// The compiler thinks std::string::const_iterator and "const char*" are
// equivalent types.
#define STD_STRING_ITERATOR_IS_CHAR_POINTER
// The compiler thinks base::string16::const_iterator and "char16*" are
// equivalent types.
#define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER
#endif
#endif // BUILD_BUILD_CONFIG_H_