diff --git a/build/android.gypi b/build/android.gypi index 46ece08524..f984ea3af6 100644 --- a/build/android.gypi +++ b/build/android.gypi @@ -87,7 +87,6 @@ '-pthread', # Not supported by Android toolchain. ], 'cflags': [ - '-U__linux__', # Don't allow toolchain to claim -D__linux__ '-ffunction-sections', '-funwind-tables', '-fstack-protector', diff --git a/test/compiler-unittests/instruction-selector-unittest.h b/test/compiler-unittests/instruction-selector-unittest.h index 5a4273fd12..124bc42357 100644 --- a/test/compiler-unittests/instruction-selector-unittest.h +++ b/test/compiler-unittests/instruction-selector-unittest.h @@ -130,11 +130,11 @@ class InstructionSelectorTest : public CompilerTest { ConstantMap::const_iterator i; if (operand->IsConstant()) { i = constants_.find(operand->index()); - EXPECT_NE(constants_.end(), i); + EXPECT_FALSE(constants_.end() == i); } else { EXPECT_EQ(InstructionOperand::IMMEDIATE, operand->kind()); i = immediates_.find(operand->index()); - EXPECT_NE(immediates_.end(), i); + EXPECT_FALSE(immediates_.end() == i); } EXPECT_EQ(operand->index(), i->first); return i->second;