summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-11-21 23:01:59 -0800
committerElliott Hughes <enh@google.com>2014-11-21 23:10:45 -0800
commit97ac0e1bb42ddd17c75691ecbe1df8a6520d4c81 (patch)
treee899f951a44088d5351cdbc8e2fb2249b038ef9d /include
parent6fe92d1a3fb17545d82d020a3c995f32e6b71f9d (diff)
downloadsystem_core-97ac0e1bb42ddd17c75691ecbe1df8a6520d4c81.zip
system_core-97ac0e1bb42ddd17c75691ecbe1df8a6520d4c81.tar.gz
system_core-97ac0e1bb42ddd17c75691ecbe1df8a6520d4c81.tar.bz2
Kill HAVE_BIG_ENDIAN, HAVE_ENDIAN_H, and HAVE_LITTLE_ENDIAN.
Change-Id: I9e25ac9d27e95b04fb8bf7a66c619af0139d8b8f
Diffstat (limited to 'include')
-rw-r--r--include/utils/Endian.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/include/utils/Endian.h b/include/utils/Endian.h
index 19f2504..a383093 100644
--- a/include/utils/Endian.h
+++ b/include/utils/Endian.h
@@ -20,21 +20,16 @@
#ifndef _LIBS_UTILS_ENDIAN_H
#define _LIBS_UTILS_ENDIAN_H
-#if defined(HAVE_ENDIAN_H)
-
-#include <endian.h>
-
-#else /*not HAVE_ENDIAN_H*/
+#if defined(_WIN32)
#define __BIG_ENDIAN 0x1000
#define __LITTLE_ENDIAN 0x0001
+#define __BYTE_ORDER __LITTLE_ENDIAN
-#if defined(HAVE_LITTLE_ENDIAN)
-# define __BYTE_ORDER __LITTLE_ENDIAN
#else
-# define __BYTE_ORDER __BIG_ENDIAN
-#endif
-#endif /*not HAVE_ENDIAN_H*/
+#include <endian.h>
+
+#endif
#endif /*_LIBS_UTILS_ENDIAN_H*/