diff options
| author | 2014-11-22 07:47:27 +0000 | |
|---|---|---|
| committer | 2014-11-22 07:47:27 +0000 | |
| commit | ff4dd15cd024f72cbd2b6d547356de030b2dd71c (patch) | |
| tree | e0bc3432c5e9eb4e95356b1c90fff11a6a54813f | |
| parent | f1058308c62f297c5bca9e9baf8451efeb200805 (diff) | |
| parent | 9d074a1fb727b7b4990cd0501e4661596e828c40 (diff) | |
Merge "We HAVE_LITTLE_ENDIAN."
| -rw-r--r-- | libs/androidfw/ResourceTypes.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libs/androidfw/ResourceTypes.cpp b/libs/androidfw/ResourceTypes.cpp index 679a75fdc5d9..5a4c9442d068 100644 --- a/libs/androidfw/ResourceTypes.cpp +++ b/libs/androidfw/ResourceTypes.cpp @@ -47,18 +47,10 @@ namespace android { #ifdef HAVE_WINSOCK #undef nhtol #undef htonl - -#ifdef HAVE_LITTLE_ENDIAN #define ntohl(x) ( ((x) << 24) | (((x) >> 24) & 255) | (((x) << 8) & 0xff0000) | (((x) >> 8) & 0xff00) ) #define htonl(x) ntohl(x) #define ntohs(x) ( (((x) << 8) & 0xff00) | (((x) >> 8) & 255) ) #define htons(x) ntohs(x) -#else -#define ntohl(x) (x) -#define htonl(x) (x) -#define ntohs(x) (x) -#define htons(x) (x) -#endif #endif #define IDMAP_MAGIC 0x504D4449 |