|
@@ -46,8 +46,7 @@
|
|
|
// UA_NON_LITTLEENDIAN_ARCHITECTURE disables memcpying integer arrays directly
|
|
|
// onto the message buffer. UA_MIXED_ENDIAN enables special encoding for floats
|
|
|
// and doubles. Otherwise, they are endianness-switched similar to integers.
|
|
|
-
|
|
|
-#if defined(__LITTLE_ENDIAN__) || defined(_WIN32) || (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
|
|
|
+#if defined(__LITTLE_ENDIAN__) || defined(_WIN32) || (!defined(__ANDROID__) && BYTE_ORDER == ORDER_LITTLE_ENDIAN)
|
|
|
# define htole16(x) (x)
|
|
|
# define htole32(x) (x)
|
|
|
# define htole64(x) (x)
|