summaryrefslogtreecommitdiff
path: root/compiler/dex/quick/codegen_util.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2015-10-08 19:07:04 +0100
committer Vladimir Marko <vmarko@google.com> 2015-10-08 19:07:04 +0100
commit4bf9012582f5f9cd16fe68fa8585848016caecc6 (patch)
tree5872f2740a84de72e8f90b80382251684686ca73 /compiler/dex/quick/codegen_util.cc
parent359f77c44dafef7ebed027180422ee75eef1467c (diff)
ART: Do not include endian.h on Mac.
Change-Id: I1bb28bd49bd1847c45e93bf2b06c643be6e09926
Diffstat (limited to 'compiler/dex/quick/codegen_util.cc')
-rw-r--r--compiler/dex/quick/codegen_util.cc3
1 files changed, 3 insertions, 0 deletions
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 <endian.h>
+#endif
#include "base/bit_vector-inl.h"
#include "dex/mir_graph.h"