Fix Android build of gtest and lib/Support.

llvm-svn: 163131
This commit is contained in:
Evgeniy Stepanov
2012-09-04 09:14:45 +00:00
parent ad41c4ce20
commit c439a42649
4 changed files with 16 additions and 6 deletions

View File

@@ -160,7 +160,7 @@ void* DynamicLibrary::SearchForAddressOfSymbol(const char *symbolName) {
// On linux we have a weird situation. The stderr/out/in symbols are both
// macros and global variables because of standards requirements. So, we
// boldly use the EXPLICIT_SYMBOL macro without checking for a #define first.
#if defined(__linux__)
#if defined(__linux__) and !defined(__ANDROID__)
{
EXPLICIT_SYMBOL(stderr);
EXPLICIT_SYMBOL(stdout);