commit | 4bf9012582f5f9cd16fe68fa8585848016caecc6 | [log] [tgz] |
---|---|---|
author | Vladimir Marko <vmarko@google.com> | Thu Oct 08 19:07:04 2015 +0100 |
committer | Vladimir Marko <vmarko@google.com> | Thu Oct 08 19:07:04 2015 +0100 |
tree | 5872f2740a84de72e8f90b80382251684686ca73 | |
parent | 359f77c44dafef7ebed027180422ee75eef1467c [diff] |
ART: Do not include endian.h on Mac. Change-Id: I1bb28bd49bd1847c45e93bf2b06c643be6e09926
diff --git a/compiler/dex/quick/codegen_util.cc b/compiler/dex/quick/codegen_util.cc index bd55fa6..dbcc868 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 <endian.h> +#endif #include "base/bit_vector-inl.h" #include "dex/mir_graph.h"