From 4bf9012582f5f9cd16fe68fa8585848016caecc6 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Thu, 8 Oct 2015 19:07:04 +0100 Subject: ART: Do not include endian.h on Mac. Change-Id: I1bb28bd49bd1847c45e93bf2b06c643be6e09926 --- compiler/dex/quick/codegen_util.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compiler/dex/quick/codegen_util.cc') diff --git a/compiler/dex/quick/codegen_util.cc b/compiler/dex/quick/codegen_util.cc index bd55fa64e6..dbcc868657 100644 --- a/compiler/dex/quick/codegen_util.cc +++ b/compiler/dex/quick/codegen_util.cc @@ -16,7 +16,10 @@ #include "mir_to_lir-inl.h" +// Mac does not provide endian.h, so we'll use byte order agnostic code. +#ifndef __APPLE__ #include +#endif #include "base/bit_vector-inl.h" #include "dex/mir_graph.h" -- cgit v1.2.3-59-g8ed1b