Merge "We HAVE_LITTLE_ENDIAN."
This commit is contained in:
@ -47,18 +47,10 @@ namespace android {
|
|||||||
#ifdef HAVE_WINSOCK
|
#ifdef HAVE_WINSOCK
|
||||||
#undef nhtol
|
#undef nhtol
|
||||||
#undef htonl
|
#undef htonl
|
||||||
|
|
||||||
#ifdef HAVE_LITTLE_ENDIAN
|
|
||||||
#define ntohl(x) ( ((x) << 24) | (((x) >> 24) & 255) | (((x) << 8) & 0xff0000) | (((x) >> 8) & 0xff00) )
|
#define ntohl(x) ( ((x) << 24) | (((x) >> 24) & 255) | (((x) << 8) & 0xff0000) | (((x) >> 8) & 0xff00) )
|
||||||
#define htonl(x) ntohl(x)
|
#define htonl(x) ntohl(x)
|
||||||
#define ntohs(x) ( (((x) << 8) & 0xff00) | (((x) >> 8) & 255) )
|
#define ntohs(x) ( (((x) << 8) & 0xff00) | (((x) >> 8) & 255) )
|
||||||
#define htons(x) ntohs(x)
|
#define htons(x) ntohs(x)
|
||||||
#else
|
|
||||||
#define ntohl(x) (x)
|
|
||||||
#define htonl(x) (x)
|
|
||||||
#define ntohs(x) (x)
|
|
||||||
#define htons(x) (x)
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define IDMAP_MAGIC 0x504D4449
|
#define IDMAP_MAGIC 0x504D4449
|
||||||
|
Reference in New Issue
Block a user